summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-04-30 16:18:41 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-04-30 16:18:41 +0000
commit383556c13bc677786e13da6434acee2d1310bdc3 (patch)
tree0e71f1e2fef8dacd1cecb4b165ce385ac67b42bb
parentb9282536c41ee96c5111d7464a7716e6f9fb20dd (diff)
parentb90e761b285e3c173772b6fe7333a17dca8679e4 (diff)
Merge "Revert "Add missing check of avoidMoveToFront when starting activity"" into main
-rw-r--r--services/core/java/com/android/server/wm/ActivityStarter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityStarter.java b/services/core/java/com/android/server/wm/ActivityStarter.java
index 5bd845f03104..330336760413 100644
--- a/services/core/java/com/android/server/wm/ActivityStarter.java
+++ b/services/core/java/com/android/server/wm/ActivityStarter.java
@@ -2167,7 +2167,7 @@ class ActivityStarter {
// We don't need to start a new activity, and the client said not to do anything
// if that is the case, so this is it! And for paranoia, make sure we have
// correctly resumed the top activity.
- if (!mMovedToFront && mDoResume && !avoidMoveToFront()) {
+ if (!mMovedToFront && mDoResume) {
ProtoLog.d(WM_DEBUG_TASKS, "Bring to front target: %s from %s", mTargetRootTask,
targetTaskTop);
mTargetRootTask.moveToFront("intentActivityFound");
@@ -2196,7 +2196,7 @@ class ActivityStarter {
if (mMovedToFront) {
// We moved the task to front, use starting window to hide initial drawn delay.
targetTaskTop.showStartingWindow(true /* taskSwitch */);
- } else if (mDoResume && !avoidMoveToFront()) {
+ } else if (mDoResume) {
// Make sure the root task and its belonging display are moved to topmost.
mTargetRootTask.moveToFront("intentActivityFound");
}