Cherish:Show Battery Temperature in Ambient Display [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Aston-Martinn
2021-04-19 09:06:13 +07:00
committed by Hưng Phan
parent 753a0d735e
commit c746eec262
3 changed files with 18 additions and 0 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="M15 13V5A3 3 0 0 0 9 5V13A5 5 0 1 0 15 13M12 4A1 1 0 0 1 13 5V12H11V5A1 1 0 0 1 12 4Z" />
</vector>

View File

@@ -1200,4 +1200,8 @@
<string name="keyguard_battery_bar_color_accent">Accent</string>
<string name="keyguard_battery_bar_color_random">Random</string>
<string name="keyguard_battery_bar_color_custom">Custom</string>
<!-- Battery temperature -->
<string name="ambient_battery_temperature_title">Battery temperature</string>
<string name="ambient_battery_temperature_summary">Show battery temperature along with the battery percent</string>
</resources>

View File

@@ -24,6 +24,13 @@
android:title="@string/lockscreen_battery_info_title"
android:summary="@string/lockscreen_battery_info_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="ambient_battery_temperature"
android:icon="@drawable/ic_temperature"
android:title="@string/ambient_battery_temperature_title"
android:summary="@string/ambient_battery_temperature_summary"
android:defaultValue="false" />
<ListPreference
android:key="lockscreen_battery_info_font"