Fix taskbar unstash animation delay when launching a split task.

Fixes: 232033354
Test: switched between split and unsplit tasks using 3 button nav and gesture nav
Change-Id: I9a4e2eb08e9970540093e3dc60b64a372be2052f
This commit is contained in:
Schneider Victor-tulias
2022-06-13 12:09:35 -07:00
parent 3bc7b93ea5
commit e164995f9e
2 changed files with 9 additions and 9 deletions

View File

@@ -169,10 +169,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;
}
@@ -459,6 +457,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;