Merge "Fix some config issues with sysui" into oc-dr1-dev am: f636e3fb52

am: f6219fa804

Change-Id: I664f79cf1b63edb083773b3cd283fec4d0a5e9bb
This commit is contained in:
Jason Monk
2017-07-06 13:26:14 +00:00
committed by android-build-merger
2 changed files with 3 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ public class InterestingConfigChanges {
}
public boolean applyNewConfig(Resources res) {
int configChanges = mLastConfiguration.updateFrom(res.getConfiguration());
int configChanges = mLastConfiguration.updateFrom(
Configuration.generateDelta(mLastConfiguration, res.getConfiguration()));
boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi;
if (densityChanged || (configChanges & (mFlags)) != 0) {
mLastDensity = res.getDisplayMetrics().densityDpi;

View File

@@ -3770,7 +3770,7 @@ public class StatusBar extends SystemUI implements DemoMode,
// SystemUIService notifies SystemBars of configuration changes, which then calls down here
@Override
protected void onConfigurationChanged(Configuration newConfig) {
public void onConfigChanged(Configuration newConfig) {
updateResources();
updateDisplaySize(); // populates mDisplayMetrics