From b4118d4fa2096253f6225b3b42e7b2b7ba21f3a7 Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 13 Jul 2022 21:08:38 +0200 Subject: [PATCH] Revert "sm6150-common: parts: Add support for zero brightness doze mode" This reverts commit 8720bb5de8bacfd3147921fcc67ceb63d51cbb0d. Change-Id: Icd29a7388a26f76fb5197805e715a464fceed70e --- parts/res/drawable/ic_doze_brightness_dark.xml | 9 --------- parts/res/values/arrays.xml | 2 -- parts/src/org/lineageos/settings/doze/DozeUtils.java | 6 +----- 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 parts/res/drawable/ic_doze_brightness_dark.xml diff --git a/parts/res/drawable/ic_doze_brightness_dark.xml b/parts/res/drawable/ic_doze_brightness_dark.xml deleted file mode 100644 index 4185b30..0000000 --- a/parts/res/drawable/ic_doze_brightness_dark.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/parts/res/values/arrays.xml b/parts/res/values/arrays.xml index bff26fa..46137ab 100644 --- a/parts/res/values/arrays.xml +++ b/parts/res/values/arrays.xml @@ -18,13 +18,11 @@ Low brightness High brightness - Zero brightness Adaptive brightness 0 1 2 - 3 diff --git a/parts/src/org/lineageos/settings/doze/DozeUtils.java b/parts/src/org/lineageos/settings/doze/DozeUtils.java index 8d13cca..170cc7a 100644 --- a/parts/src/org/lineageos/settings/doze/DozeUtils.java +++ b/parts/src/org/lineageos/settings/doze/DozeUtils.java @@ -66,8 +66,7 @@ public final class DozeUtils { protected static final String DOZE_BRIGHTNESS_LBM = "0"; protected static final String DOZE_BRIGHTNESS_HBM = "1"; - protected static final String DOZE_BRIGHTNESS_DARK = "2"; - protected static final String DOZE_BRIGHTNESS_AUTO = "3"; + protected static final String DOZE_BRIGHTNESS_AUTO = "2"; public static void onBootCompleted(Context context) { checkDozeService(context); @@ -210,9 +209,6 @@ public final class DozeUtils { case DozeUtils.DOZE_BRIGHTNESS_HBM: preference.setIcon(R.drawable.ic_doze_brightness_high); break; - case DozeUtils.DOZE_BRIGHTNESS_DARK: - preference.setIcon(R.drawable.ic_doze_brightness_dark); - break; case DozeUtils.DOZE_BRIGHTNESS_AUTO: preference.setIcon(R.drawable.ic_doze_brightness_auto); break;