commit | 71735d38b1a56410dff6933e0f6f63878db6042d | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Thu Apr 06 09:29:24 2017 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Thu Apr 06 17:31:01 2017 +0000 |
tree | c42cdda46abd467c6dcb7fc769dcc84344363e4e | |
parent | a441da153e1d2fdd38594b01f4dd078c7290c198 [diff] |
Preserve app window when it requests a relaunch Help allow blank screens when the app calls Activity.recreate(). Test: Take YouTube app in-out of split-screen and make sure there is't a hole Fixes 36567223 Change-Id: Ic4915153c2cb88cce9a1bea7500cf89be14c5aa4
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index ee2fdba..5703d5b 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -5026,7 +5026,7 @@ try { r.forceNewConfig = true; r.ensureActivityConfigurationLocked(0 /* globalChanges */, - false /* preserveWindow */); + true /* preserveWindow */); } finally { Binder.restoreCallingIdentity(origId); }