Merge "Ensure that we stop app switches when finishing the recents animation" into qt-dev
diff --git a/services/core/java/com/android/server/wm/RecentsAnimation.java b/services/core/java/com/android/server/wm/RecentsAnimation.java
index c5b2566..434239f 100644
--- a/services/core/java/com/android/server/wm/RecentsAnimation.java
+++ b/services/core/java/com/android/server/wm/RecentsAnimation.java
@@ -231,6 +231,11 @@
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));