OSDN Git Service

Do not sanitize override config for fullscreen
authorChong Zhang <chz@google.com>
Wed, 1 Jun 2016 19:20:10 +0000 (12:20 -0700)
committerChong Zhang <chz@google.com>
Wed, 1 Jun 2016 19:20:10 +0000 (12:20 -0700)
bug: 29063336
Change-Id: I65c5d635133a6b3791ce1aef63547f8d38ca24b5

services/core/java/com/android/server/am/TaskRecord.java

index c0adad0..578fc44 100644 (file)
@@ -1582,6 +1582,11 @@ final class TaskRecord {
      * @param globalConfig global configuration to update from.
      */
     void sanitizeOverrideConfiguration(Configuration globalConfig) {
+        // If it's fullscreen, the override config should be empty and we should leave it alone.
+        if (mFullscreen) {
+            return;
+        }
+
         // screenLayout field is set in #calculateOverrideConfig but only part of it is really
         // overridden - aspect ratio and size. Other flags (like layout direction) can be updated
         // separately in global config and they also must be updated in override config.