Merge "Fix taskbar unstash animation delay when launching a split task." into tm-qpr-dev

This commit is contained in:
Schneider Victor-tulias authored and Android (Google) Code Review committed 2022-06-21 19:38:46 +00:00
commit 6c71fe71bd
2 files changed
+9 -9

No files matched your search

@@ -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;