Merge "Detach nav bar from app after settling into overview" into sc-dev am: 3ed7ee76c4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14543545

Change-Id: Ibd0f8e33cdfc98c0abe1a5958bccbfac5a4d6515
This commit is contained in:
Tracy Zhou
2021-05-17 17:13:35 +00:00
committed by Automerger Merge Worker
@@ -1483,6 +1483,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
private void finishCurrentTransitionToRecents() {
if (LIVE_TILE.get()) {
mStateCallback.setStateOnUiThread(STATE_CURRENT_TASK_FINISHED);
if (mRecentsAnimationController != null) {
mRecentsAnimationController.getController().detachNavigationBarFromApp(true);
}
} else if (!hasTargets() || mRecentsAnimationController == null) {
// If there are no targets or the animation not started, then there is nothing to finish
mStateCallback.setStateOnUiThread(STATE_CURRENT_TASK_FINISHED);