Merge "Null mRecentsAnimationController in the end" into sc-dev

This commit is contained in:
Tracy Zhou
2021-04-23 17:05:28 +00:00
committed by Android (Google) Code Review
@@ -3169,7 +3169,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
}
mRecentsAnimationController.finish(toRecents, () -> {
mRecentsAnimationController = null;
if (onFinishComplete != null) {
onFinishComplete.run();
}
@@ -3179,6 +3178,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
// typical example of this is (1) user swipes up from app to Overview (2) user
// taps on QSB (3) user goes back to Overview and launch the most recent task.
setCurrentTask(-1);
mRecentsAnimationController = null;
});
}