Cherish:QS Header data usage info [2/2]

Signed-off-by: 00day0 <therandomuser11@gmail.com>
This commit is contained in:
00day0
2020-08-16 11:51:34 +07:00
committed by Hưng Phan
parent 423893ba04
commit 5ba110df93
3 changed files with 17 additions and 0 deletions

7
res/drawable/ic_data.xml Normal file
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="M13,2.05V5.08C16.39,5.57 19,8.47 19,12C19,12.9 18.82,13.75 18.5,14.54L21.12,16.07C21.68,14.83 22,13.45 22,12C22,6.82 18.05,2.55 13,2.05M12,19A7,7 0 0,1 5,12C5,8.47 7.61,5.57 11,5.08V2.05C5.94,2.55 2,6.81 2,12A10,10 0 0,0 12,22C15.3,22 18.23,20.39 20.05,17.91L17.45,16.38C16.17,18 14.21,19 12,19Z" />
</vector>

View File

@@ -651,4 +651,7 @@
<string name="pulse_ambient_light_layout_solid">Solid</string> <string name="pulse_ambient_light_layout_solid">Solid</string>
<string name="pulse_ambient_light_layout_faded">Faded</string> <string name="pulse_ambient_light_layout_faded">Faded</string>
<string name="qs_datausage_title">Show data usage in qs header</string>
<string name="qs_datausage_subtitle">Shows data usage in quick settings header of sim used for data</string>
</resources> </resources>

View File

@@ -69,6 +69,13 @@
android:summary="@string/enable_oneui_summary" android:summary="@string/enable_oneui_summary"
android:defaultValue="true" /> android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="qs_datausage"
android:icon="@drawable/ic_data"
android:title="@string/qs_datausage_title"
android:summary="@string/qs_datausage_subtitle"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference <com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
android:key="status_bar_custom_header" android:key="status_bar_custom_header"
android:icon="@drawable/ic_header" android:icon="@drawable/ic_header"