From 67e472edbaa495373dc7fa0cebe3fd741b23ed8a Mon Sep 17 00:00:00 2001 From: Arian Date: Mon, 12 Jul 2021 18:23:26 +0200 Subject: [PATCH] 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 --- parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java b/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java index 111481b..d5e9d4f 100644 --- a/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java +++ b/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java @@ -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);