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