summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ryan Mitchell <rtmitchell@google.com> 2021-06-10 19:49:40 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-06-10 19:49:40 +0000
commit55128109d9d0a44a57c118a6da086e0bf5f791ef (patch)
tree24fb65490fd550f9147efec09840f0f2880f2637
parent29ce722f16750e1527530838fde81acd971f8054 (diff)
parent119a7f55911ba3e96a35300090bf83d00c5dc4a4 (diff)
Merge "Fix RRO handleConfigurationChanged race condition" into sc-dev
-rw-r--r--core/java/android/app/ConfigurationController.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/app/ConfigurationController.java b/core/java/android/app/ConfigurationController.java
index 6d92201db8ec..f79e0780ecae 100644
--- a/core/java/android/app/ConfigurationController.java
+++ b/core/java/android/app/ConfigurationController.java
@@ -158,10 +158,9 @@ class ConfigurationController {
int configDiff;
boolean equivalent;
- final Resources.Theme systemTheme = mActivityThread.getSystemContext().getTheme();
- final Resources.Theme systemUiTheme = mActivityThread.getSystemUiContext().getTheme();
-
synchronized (mResourcesManager) {
+ final Resources.Theme systemTheme = mActivityThread.getSystemContext().getTheme();
+ final Resources.Theme systemUiTheme = mActivityThread.getSystemUiContext().getTheme();
if (mPendingConfiguration != null) {
if (!mPendingConfiguration.isOtherSeqNewer(config)) {
config = mPendingConfiguration;