diff options
| author | 2019-06-03 18:09:34 +0000 | |
|---|---|---|
| committer | 2019-06-03 18:09:34 +0000 | |
| commit | a54b943d59765d0b60aefde3132fdce8f039d2e3 (patch) | |
| tree | c6493dadc0acc37088d088ece5a7cca29956086c | |
| parent | 9949266e407158d82696dfe09dc260aeeed9a30e (diff) | |
| parent | 968064bed0a43b019cb7d84bed7493f6f78fda5e (diff) | |
Merge "Fix a bug about missing onConfigurationChanged" into qt-dev
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 1e982bc48c19..3a74f7dc2ea5 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -5564,15 +5564,9 @@ public final class ActivityThread extends ClientTransactionHandler { private void handleConfigurationChanged(Configuration config, CompatibilityInfo compat) { - int configDiff = 0; - - // This flag tracks whether the new configuration is fundamentally equivalent to the - // existing configuration. This is necessary to determine whether non-activity - // callbacks should receive notice when the only changes are related to non-public fields. - // We do not gate calling {@link #performActivityConfigurationChanged} based on this flag - // as that method uses the same check on the activity config override as well. - final boolean equivalent = config != null && mConfiguration != null - && (0 == mConfiguration.diffPublicOnly(config)); + int configDiff; + boolean equivalent; + final Theme systemTheme = getSystemContext().getTheme(); final Theme systemUiTheme = getSystemUiContext().getTheme(); @@ -5590,6 +5584,13 @@ public final class ActivityThread extends ClientTransactionHandler { return; } + // This flag tracks whether the new configuration is fundamentally equivalent to the + // existing configuration. This is necessary to determine whether non-activity callbacks + // should receive notice when the only changes are related to non-public fields. + // We do not gate calling {@link #performActivityConfigurationChanged} based on this + // flag as that method uses the same check on the activity config override as well. + equivalent = mConfiguration != null && (0 == mConfiguration.diffPublicOnly(config)); + if (DEBUG_CONFIGURATION) Slog.v(TAG, "Handle configuration changed: " + config); |