[SQUASH] Cherish: Force custom doze brightness and pulse brightness configs [2/2]

* Stallix: Forward port to 11

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
maxwen
2020-12-16 23:34:35 +09:00
committed by Hưng Phan
parent a343e61057
commit ed97aea10a
3 changed files with 72 additions and 1 deletions

View File

@@ -1186,4 +1186,13 @@
<string name="fod_icon_picker_title">Fingerprint icon</string>
<string name="fod_icon_picker_summary">Choose your favorite fingerprint icon</string>
<string name="fod_icon_picker_footer">In order to add your own icon, select the top left icon and use the OnePlus 6T FP Customizer app to select the icon you want.</string>
<!-- Doze Brightness Config -->
<string name="doze_brightness_category">Doze Brightness Config</string>
<string name="doze_brightness_force_title">Force brightness values</string>
<string name="doze_brightness_force_summary">Use custom brightness values instead of screen brightness</string>
<string name="ambient_pulse_brightness_title">Ambient notification brightness</string>
<string name="ambient_pulse_brightness_summary">Set brightness to use when notifcations are shown</string>
<string name="ambient_doze_brightness_title">Ambient display brightness</string>
<string name="ambient_doze_brightness_summary">Set brightness to use during ambient display on</string>
</resources>

View File

@@ -41,6 +41,34 @@
android:title="@string/gaming_mode_title"
android:summary="@string/gaming_mode_summary"
android:defaultValue="false" />
<PreferenceCategory
android:title="@string/doze_brightness_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="doze_brightness_force"
android:title="@string/doze_brightness_force_title"
android:summary="@string/doze_brightness_force_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="ambient_doze_brightness"
android:title="@string/ambient_doze_brightness_title"
android:summary="@string/ambient_doze_brightness_summary"
android:max="255"
android:min="1"
android:persistent="false" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="ambient_pulse_brightness"
android:title="@string/ambient_pulse_brightness_title"
android:summary="@string/ambient_pulse_brightness_summary"
android:max="255"
android:min="1"
android:persistent="false" />
</PreferenceCategory>
<com.cherish.settings.preferences.GlobalSettingSwitchPreference
android:icon="@drawable/ic_plug"