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:
Arian 2021-07-12 18:23:26 +02:00
parent 7764bbddc7
commit 67e472edba
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -162,6 +162,7 @@ public class DozeSettingsFragment extends PreferenceFragment
DozeUtils.enableAlwaysOn(getActivity(), (Boolean) newValue); DozeUtils.enableAlwaysOn(getActivity(), (Boolean) newValue);
if (!(Boolean) newValue) { if (!(Boolean) newValue) {
mDozeBrightnessPreference.setValue(DozeUtils.DOZE_BRIGHTNESS_LBM); mDozeBrightnessPreference.setValue(DozeUtils.DOZE_BRIGHTNESS_LBM);
DozeUtils.setDozeMode(DozeUtils.DOZE_BRIGHTNESS_LBM);
} else { } else {
mPickUpPreference.setChecked(false); mPickUpPreference.setChecked(false);
mHandwavePreference.setChecked(false); mHandwavePreference.setChecked(false);