Merge "Fix RRO handleConfigurationChanged race condition" into sc-dev am: 55128109d9 am: 7feeebf128
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14923667 Change-Id: I89ffc921ddd85a2f033757b0b2bae019f2343ce1
This commit is contained in:
@@ -158,10 +158,9 @@ class ConfigurationController {
|
|||||||
int configDiff;
|
int configDiff;
|
||||||
boolean equivalent;
|
boolean equivalent;
|
||||||
|
|
||||||
|
synchronized (mResourcesManager) {
|
||||||
final Resources.Theme systemTheme = mActivityThread.getSystemContext().getTheme();
|
final Resources.Theme systemTheme = mActivityThread.getSystemContext().getTheme();
|
||||||
final Resources.Theme systemUiTheme = mActivityThread.getSystemUiContext().getTheme();
|
final Resources.Theme systemUiTheme = mActivityThread.getSystemUiContext().getTheme();
|
||||||
|
|
||||||
synchronized (mResourcesManager) {
|
|
||||||
if (mPendingConfiguration != null) {
|
if (mPendingConfiguration != null) {
|
||||||
if (!mPendingConfiguration.isOtherSeqNewer(config)) {
|
if (!mPendingConfiguration.isOtherSeqNewer(config)) {
|
||||||
config = mPendingConfiguration;
|
config = mPendingConfiguration;
|
||||||
|
|||||||
Reference in New Issue
Block a user