Cherish: QS Panel: Add the ability to hide/show Edit icon [2/2]

Change-Id: Ie8cc35d8fd77bfde3319d01cc4b17a6f4f305491
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Joe Maples
2021-01-19 22:28:07 +07:00
committed by Hưng Phan
parent 0595a98db4
commit 18df5031aa
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M2,6V8H14V6H2M2,10V12H14V10H2M20.04,10.13C19.9,10.13 19.76,10.19 19.65,10.3L18.65,11.3L20.7,13.35L21.7,12.35C21.92,12.14 21.92,11.79 21.7,11.58L20.42,10.3C20.31,10.19 20.18,10.13 20.04,10.13M18.07,11.88L12,17.94V20H14.06L20.12,13.93L18.07,11.88M2,14V16H10V14H2Z" />
</vector>

View File

@@ -1029,4 +1029,7 @@
<!-- Quick Settings quick pulldown -->
<string name="quick_settings_quick_pull_down_title">Quick Settings quick pull-down</string>
<string name="quick_settings_quick_pull_down_summary">Automatically expand Quick Settings when pulling from the right side of the status bar</string>
<string name="qs_edit_title">Edit Icon</string>
<string name="qs_edit_summary">Enable the tile edit icon in the footer</string>
</resources>

View File

@@ -53,12 +53,19 @@
<!-- QS footer text string -->
<com.cherish.settings.preferences.SystemSettingEditTextPreference
android:key="footer_text_string"
android:icon="@drawable/ic_edit"
android:icon="@drawable/ic_edit1"
android:title="@string/qs_footer_text_string_title"
android:summary="@string/qs_footer_text_string_summary"
android:dependency="omni_footer_text_show"
android:defaultValue="#KeeptheLove" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_edit_toggle"
android:icon="@drawable/ic_edit"
android:title="@string/qs_edit_title"
android:summary="@string/qs_edit_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="qs_datausage"
android:icon="@drawable/ic_data"