Merge "Ensure that we stop app switches when finishing the recents animation" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-29 02:29:32 +00:00
committed by Android (Google) Code Review

View File

@@ -231,6 +231,11 @@ class RecentsAnimation implements RecentsAnimationCallbacks,
mService.mRootActivityContainer.sendPowerHintForLaunchEndIfNeeded(); 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.mH.post(
() -> mService.mAmInternal.setRunningRemoteAnimation(mCallingPid, false)); () -> mService.mAmInternal.setRunningRemoteAnimation(mCallingPid, false));