diff options
author | 2016-04-18 05:43:14 +0000 | |
---|---|---|
committer | 2016-04-18 05:43:16 +0000 | |
commit | 988a20a94b71c7a8fdffcfbfe0b0ee0dd58854cb (patch) | |
tree | 8b51ebac2c8eb2b7fa398b10a588ff88e2f09329 | |
parent | 02ebaa02c41050b7223b9ec772da669810bff43b (diff) | |
parent | f7dab1e53f4c8544a6129ff8785363baec1272dc (diff) |
Merge "Always send configuration changes to activity." into nyc-dev
-rw-r--r-- | services/core/java/com/android/server/am/ActivityStack.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index 837a1c1f1a21..b043311b2d5e 100644 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -4362,12 +4362,12 @@ final class ActivityStack { if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Ensuring correct configuration: " + r); - // Short circuit: if the two configurations are the exact same - // object (the common case), then there is nothing to do. + // Short circuit: if the two configurations are equal (the common case), then there is + // nothing to do. final Configuration newConfig = mService.mConfiguration; final Configuration taskConfig = r.task.mOverrideConfig; - if (r.configuration == newConfig - && r.taskConfigOverride == taskConfig + if (r.configuration.equals(newConfig) + && r.taskConfigOverride.equals(taskConfig) && !r.forceNewConfig) { if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION, "Configuration unchanged in " + r); @@ -4396,7 +4396,7 @@ final class ActivityStack { "Configuration no differences in " + r); // There are no significant differences, so we won't relaunch but should still deliver // the new configuration to the client process. - r.scheduleConfigurationChanged(taskConfig, false); + r.scheduleConfigurationChanged(taskConfig, true); return true; } |