mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Fix taskbar unstash animation delay when launching a split task." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6c71fe71bd
@@ -183,10 +183,8 @@ import java.util.function.Supplier;
|
||||
|
||||
mTaskBarRecentsAnimationListener = new TaskBarRecentsAnimationListener(callbacks);
|
||||
callbacks.addListener(mTaskBarRecentsAnimationListener);
|
||||
RecentsView recentsView = mLauncher.getOverviewPanel();
|
||||
recentsView.setTaskLaunchListener(() -> {
|
||||
mTaskBarRecentsAnimationListener.endGestureStateOverride(true);
|
||||
});
|
||||
((RecentsView) mLauncher.getOverviewPanel()).setTaskLaunchListener(() ->
|
||||
mTaskBarRecentsAnimationListener.endGestureStateOverride(true));
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
@@ -491,6 +489,7 @@ import java.util.function.Supplier;
|
||||
private void endGestureStateOverride(boolean finishedToApp) {
|
||||
mCallbacks.removeListener(this);
|
||||
mTaskBarRecentsAnimationListener = null;
|
||||
((RecentsView) mLauncher.getOverviewPanel()).setTaskLaunchListener(null);
|
||||
|
||||
// Update the resumed state immediately to ensure a seamless handoff
|
||||
boolean launcherResumed = !finishedToApp;
|
||||
|
||||
Reference in New Issue
Block a user