diff options
| author | 2016-06-01 19:34:02 +0000 | |
|---|---|---|
| committer | 2016-06-01 19:34:04 +0000 | |
| commit | 65f1973ba9f91c6727a7131b31b6c563cd880ee0 (patch) | |
| tree | ed3f19ad8df4c94118b4bb3ab98d7ef29f9c9285 | |
| parent | 61721ee3d7b7d55a0535584449b49143b1c2e039 (diff) | |
| parent | a8cc378d15b21c5d49c267fe300dbc7408dafb51 (diff) | |
Merge "Do not sanitize override config for fullscreen" into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/am/TaskRecord.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/TaskRecord.java b/services/core/java/com/android/server/am/TaskRecord.java index c0adad0b7194..578fc44e7832 100644 --- a/services/core/java/com/android/server/am/TaskRecord.java +++ b/services/core/java/com/android/server/am/TaskRecord.java @@ -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. |