mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Fix bug where floating icon and workspace icon visible at the same time.
- Add a signal for the animation to be "cancelled" - Allow the workspace view to be attached to a spring during the animatoin (but kept hidden) to prevent any jumpy movement Bug: 137215697 Change-Id: Ie6868a7f45fefaee5366c8d30bb323fe042e9156
This commit is contained in:
@@ -656,8 +656,7 @@ public class FloatingIconView extends View implements
|
||||
canvas.restoreToCount(count);
|
||||
}
|
||||
|
||||
public void onListenerViewClosed() {
|
||||
// Fast finish here.
|
||||
public void fastFinish() {
|
||||
if (mEndRunnable != null) {
|
||||
mEndRunnable.run();
|
||||
mEndRunnable = null;
|
||||
@@ -757,7 +756,7 @@ public class FloatingIconView extends View implements
|
||||
view.setVisibility(INVISIBLE);
|
||||
parent.addView(view);
|
||||
dragLayer.addView(view.mListenerView);
|
||||
view.mListenerView.setListener(view::onListenerViewClosed);
|
||||
view.mListenerView.setListener(view::fastFinish);
|
||||
|
||||
view.mEndRunnable = () -> {
|
||||
view.mEndRunnable = null;
|
||||
|
||||
Reference in New Issue
Block a user