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

Commit 6a295360 authored by Fiona Campbell's avatar Fiona Campbell Committed by Android (Google) Code Review
Browse files

Merge "Save display persistent data store" into sc-dev

parents c2baf8f5 304e35e3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1282,6 +1282,7 @@ public final class DisplayManagerService extends SystemService {
        // this point.
        sendDisplayEventLocked(displayId, DisplayManagerGlobal.EVENT_DISPLAY_CHANGED);
        scheduleTraversalLocked(false);
        mPersistentDataStore.saveIfNeeded();
    }

    private void handleLogicalDisplayFrameRateOverridesChangedLocked(
@@ -2884,6 +2885,7 @@ public final class DisplayManagerService extends SystemService {
                    if (dpc != null) {
                        dpc.putScreenBrightnessSetting(brightness);
                    }
                    mPersistentDataStore.saveIfNeeded();
                }
            } finally {
                Binder.restoreCallingIdentity(token);