sm8150-common: DeviceSettings: Startup: Restore DC-Dimming on boot

Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
This commit is contained in:
Anirudh Gupta 2019-12-13 00:55:22 +00:00 committed by Anirudh Gupta
parent 03606f330a
commit 33c17c59f3
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ public class Startup extends BroadcastReceiver {
restore(SRGBModeSwitch.getFile(), enabled);
enabled = sharedPrefs.getBoolean(DeviceSettings.KEY_HBM_SWITCH, false);
restore(HBMModeSwitch.getFile(), enabled);
enabled = sharedPrefs.getBoolean(DeviceSettings.KEY_DC_SWITCH, false);
restore(DCModeSwitch.getFile(), enabled);
enabled = sharedPrefs.getBoolean(DeviceSettings.KEY_DCI_SWITCH, false);
restore(DCIModeSwitch.getFile(), enabled);
enabled = sharedPrefs.getBoolean(DeviceSettings.KEY_NIGHT_SWITCH, false);