Revert "sm6150-common: parts: Add support for zero brightness doze mode"

This reverts commit 8720bb5de8.

Change-Id: Icd29a7388a26f76fb5197805e715a464fceed70e
This commit is contained in:
Arian 2022-07-13 21:08:38 +02:00
parent 28b9dec732
commit b4118d4fa2
3 changed files with 1 additions and 16 deletions

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:tint="?android:attr/colorControlNormal"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="#000" android:pathData="M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z"/>
</vector>

View File

@ -18,13 +18,11 @@
<string-array name="doze_brightness_level">
<item>Low brightness</item>
<item>High brightness</item>
<item>Zero brightness </item>
<item>Adaptive brightness</item>
</string-array>
<string-array name="doze_brightness_level_mode">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
</resources>

View File

@ -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;