summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jerry Chang <chenghsiuchang@google.com> 2021-09-02 03:53:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-09-02 03:53:10 +0000
commita07f72ca003115db5a1832f3475474a829238a58 (patch)
tree7d927dd7a79d1ed23cd9ba2bdd63d900c128cab4
parentbb6676222dd23e2a0758ac77d019fe793a41e801 (diff)
parentbf31a0641f3495a6ec649368731ddf05ce5be72c (diff)
Merge "Fix dismissing activity getting relaunch signal while dismissing split" into sc-v2-dev
-rw-r--r--services/core/java/com/android/server/wm/ActivityRecord.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java
index ca19b7e39275..d5e72af74a68 100644
--- a/services/core/java/com/android/server/wm/ActivityRecord.java
+++ b/services/core/java/com/android/server/wm/ActivityRecord.java
@@ -1354,14 +1354,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
updatePictureInPictureMode(null, false);
} else {
mLastReportedMultiWindowMode = inMultiWindowMode;
- // If the activity is in stopping or stopped state, for instance, it's in the
- // split screen task and not the top one, the last configuration it should keep
- // is the one before multi-window mode change.
- final State state = getState();
- if (state != STOPPED && state != STOPPING) {
- ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
- true /* ignoreVisibility */);
- }
+ ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
+ false /* ignoreVisibility */);
}
}
}