Merge "Ensure that we stop app switches when finishing the recents animation" into qt-dev am: 85427e400b am: 7d1bb399e3

am: c97a380168

Change-Id: If96eb0d70f4ff7b74ac0208bf42ca5f7223d1c1d
This commit is contained in:
Winson Chung
2019-05-28 19:50:48 -07:00
committed by android-build-merger

View File

@@ -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));