Merge "Do not dispatch theme change if same @ResId" into sc-v2-dev am: 692fa2cf67 am: e2524acfd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16058350 Change-Id: I7729d2b8975904d0769cd5f9bf11e72888a1dc47
This commit is contained in:
@@ -3292,6 +3292,9 @@ public class StatusBar extends SystemUI implements
|
||||
final boolean lockDarkText = mColorExtractor.getNeutralColors().supportsDarkText();
|
||||
final int themeResId = lockDarkText ? R.style.Theme_SystemUI_LightWallpaper
|
||||
: R.style.Theme_SystemUI;
|
||||
if (mContext.getThemeResId() == themeResId) {
|
||||
return;
|
||||
}
|
||||
mContext.setTheme(themeResId);
|
||||
mConfigurationController.notifyThemeChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user