Merge "Only allow one TaskbarRecentsAnimationsListener at a time." into tm-qpr-dev

This commit is contained in:
Brian Isganitis authored and Android (Google) Code Review committed 2022-11-18 21:38:58 +00:00
commit 543528594a
1 file changed
+4
@@ -186,6 +186,10 @@ import java.util.StringJoiner;
animatorSet.play(stashController.applyStateWithoutStart(duration));
animatorSet.play(applyState(duration, false));
if (mTaskBarRecentsAnimationListener != null) {
mTaskBarRecentsAnimationListener.endGestureStateOverride(
!mLauncher.isInState(LauncherState.OVERVIEW));
}
mTaskBarRecentsAnimationListener = new TaskBarRecentsAnimationListener(callbacks);
callbacks.addListener(mTaskBarRecentsAnimationListener);
((RecentsView) mLauncher.getOverviewPanel()).setTaskLaunchListener(() ->