Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6219fa8 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

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

am: f636e3fb

Change-Id: Ib9b38c8eb8c6452e7d12f2ced2b499292c000277
parents c4b8015b f636e3fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -3759,7 +3759,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