Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ed7ee76 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Detach nav bar from app after settling into overview" into sc-dev

parents 6facaad5 7ad2e846
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);