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

Commit 751579d2 authored by Winson Chung's avatar Winson Chung
Browse files

Ensure that we stop app switches when finishing the recents animation

Bug: 133753586
Test: Run app that starts an activity after transitioning home and verify
      it is delayed due to stopAppSwitches

Change-Id: I6a6f195baf57ff8041947d9da9b21e21b921a9f5
parent dd91e676
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -231,6 +231,11 @@ class RecentsAnimation implements RecentsAnimationCallbacks,
                mService.mRootActivityContainer.sendPowerHintForLaunchEndIfNeeded();
            }

            // Once the target is shown, prevent spurious background app switches
            if (reorderMode == REORDER_MOVE_TO_TOP) {
                mService.stopAppSwitches();
            }

            mService.mH.post(
                    () -> mService.mAmInternal.setRunningRemoteAnimation(mCallingPid, false));