From 7ad2e846b477a744396e7caa3fdca7a4d66c9612 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Fri, 14 May 2021 00:17:05 -0700 Subject: [PATCH] Detach nav bar from app after settling into overview Fixes: 185042209 Test: manual Change-Id: Id302ac9f8e86c3af6b2c05a4314401505eb26b1e --- quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index d04bfe95e2..52aad98cdd 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -1476,6 +1476,9 @@ public abstract class AbsSwipeUpHandler, 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);