summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-05-29 02:29:32 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-05-29 02:29:32 +0000
commit85427e400b51cc501fb63a2e5da78e88d2788932 (patch)
tree7f4c4673c0e80f542fa3b0d6a224ea4c9bfd8af0
parent4f179bb174a8622c1cf3bfca5eb5c57720ab70b8 (diff)
parent751579d2e98dd7c86f38d5fb7ce53fc5221aecf8 (diff)
Merge "Ensure that we stop app switches when finishing the recents animation" into qt-dev
-rw-r--r--services/core/java/com/android/server/wm/RecentsAnimation.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/RecentsAnimation.java b/services/core/java/com/android/server/wm/RecentsAnimation.java
index c5b25664f762..434239f6ecf7 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 @@ 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));