Tweaking drop target transition to prevent flash.

Change-Id: I7a0204685f1d377117b4d8e39b1c0d32e7b37a76
This commit is contained in:
Winson Chung
2011-07-11 21:06:30 -07:00
parent 3818eaf848
commit aaa530adc9
4 changed files with 10 additions and 4 deletions

View File

@@ -97,6 +97,7 @@ public class InfoDropTarget extends ButtonDropTarget {
}
mActive = isVisible;
mDrawable.resetTransition();
setVisibility(isVisible ? View.VISIBLE : View.GONE);
}
@@ -115,6 +116,8 @@ public class InfoDropTarget extends ButtonDropTarget {
public void onDragExit(DragObject d) {
super.onDragExit(d);
mDrawable.resetTransition();
if (!d.dragComplete) {
mDrawable.resetTransition();
}
}
}