Tweaking drop target transition to prevent flash.

Change-Id: I7a0204685f1d377117b4d8e39b1c0d32e7b37a76
This commit is contained in:
Winson Chung committed 2011-07-11 21:06:54 -07:00
1 parent 3818eaf848
commit aaa530adc9
4 files changed
+10 -4

No files matched your search

@@ -113,6 +113,7 @@ public class DeleteDropTarget extends ButtonDropTarget {
}
mActive = isVisible;
mDrawable.resetTransition();
setVisibility(isVisible ? View.VISIBLE : View.GONE);
if (mText.getText().length() > 0) {
mText.setText(isUninstall ? R.string.delete_target_uninstall_label
@@ -135,7 +136,9 @@ public class DeleteDropTarget extends ButtonDropTarget {
public void onDragExit(DragObject d) {
super.onDragExit(d);
mDrawable.resetTransition();
if (!d.dragComplete) {
mDrawable.resetTransition();
}
}
public void onDrop(DragObject d) {