Merge "Save display persistent data store" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6a2953601b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user