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

This commit is contained in:
Brian Isganitis
2022-11-18 21:38:58 +00:00
committed by Android (Google) Code Review
@@ -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(() ->