mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Tweaking drop target transition to prevent flash.
Change-Id: I7a0204685f1d377117b4d8e39b1c0d32e7b37a76
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user