Cherish: Burn-In Protection: Add enable and interval switches [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
mydongistiny
2022-01-03 01:03:40 +07:00
committed by Hưng Phan
parent dbd98d79d5
commit 4c882cdff7
2 changed files with 29 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
<!-- Units -->
<string name="unit_seconds">seconds</string>
<string name="unit_x1000ms">x1000 ms</string>
<!-- Categories -->
<string name="button_title">Buttons</string>
@@ -667,5 +668,12 @@
<!--Vietnamese lunar calendar -->
<string name="qs_show_lunar_calendar_title">Lunar Calendar</string>
<string name="qs_show_lunar_calendar_summary">Show lunar calendar in quick settings</string>
<!-- Burn-in Protection -->
<string name="burnin_category">Burn-in protection</string>
<string name="burn_in_protection_title">Use Burn-in protection</string>
<string name="burn_in_protection_summary">Shift nav bar and status bar icons to prevent burn-in</string>
<string name="burn_in_protection_interval_title">Interval of shift</string>
<string name="burn_in_protection_interval_summary">How often to make icons shift</string>
</resources>

View File

@@ -29,5 +29,26 @@
android:title="@string/charging_animation_title"
android:summary="@string/charging_animation_summary"
android:defaultValue="false" />
<PreferenceCategory
android:key="burnin_category"
android:title="@string/burnin_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="burn_in_protection"
android:title="@string/burn_in_protection_title"
android:summary="@string/burn_in_protection_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="burn_in_protection_interval"
android:title="@string/burn_in_protection_interval_title"
android:max="120"
android:min="45"
settings:units="@string/unit_x1000ms"
android:dependency="burn_in_protection"
android:defaultValue="60" />
</PreferenceCategory>
</PreferenceScreen>