Cherish: Allow customizing footer text [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Ido Ben-Hur
2019-11-28 15:27:23 +02:00
committed by Hưng Phan
parent 0b61f74039
commit fdc85e21ef
3 changed files with 46 additions and 0 deletions

View File

@@ -471,4 +471,9 @@
<!-- Sb Icon Style -->
<string name="statusbar_icons_style">Colored Statusbar Icons</string>
<string name="statusbar_icons_style_summary">Choose the style of your statusbar icons (requires SystemUI restart)</string>
<!-- QS footer text -->
<string name="qs_footer_text_show_title">Show QS footer text</string>
<string name="qs_footer_text_string_title">Customize footer text</string>
<string name="qs_footer_text_string_summary">Set to empty for default TheKeepLove</string>
</resources>

View File

@@ -21,6 +21,20 @@
<PreferenceCategory
android:title="@string/qs_title">
<!-- QS footer text toggle -->
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_footer_text_show"
android:title="@string/qs_footer_text_show_title"
android:defaultValue="false" />
<!-- QS footer text string -->
<com.cherish.settings.preferences.SystemSettingEditTextPreference
android:key="qs_footer_text_string"
android:title="@string/qs_footer_text_string_title"
android:summary="@string/qs_footer_text_string_summary"
android:dependency="qs_footer_text_show"
android:defaultValue="TheKeepLove" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_show_battery_estimate"
android:title="@string/qs_show_battery_estimate_title"