sm6150-common: parts: Ensure doze_mode is set to LBM when disabling AOD
* When setting the doze mode to HBM, disabling AOD and enabling it again the doze mode was still set to HBM but the listpreference was reset to LBM. Change-Id: Ibd9682c97757335ac4df48a21c7b64f7b36dd585
This commit is contained in:
parent
7764bbddc7
commit
67e472edba
@ -162,6 +162,7 @@ public class DozeSettingsFragment extends PreferenceFragment
|
||||
DozeUtils.enableAlwaysOn(getActivity(), (Boolean) newValue);
|
||||
if (!(Boolean) newValue) {
|
||||
mDozeBrightnessPreference.setValue(DozeUtils.DOZE_BRIGHTNESS_LBM);
|
||||
DozeUtils.setDozeMode(DozeUtils.DOZE_BRIGHTNESS_LBM);
|
||||
} else {
|
||||
mPickUpPreference.setChecked(false);
|
||||
mHandwavePreference.setChecked(false);
|
||||
|
Loading…
Reference in New Issue
Block a user