Cherish: Bring Back LsClock settings

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
spkal01
2022-04-21 11:18:59 +03:00
committed by Hưng Phan
parent 451d85b554
commit bb4d205f59
4 changed files with 82 additions and 0 deletions

View File

@@ -394,4 +394,22 @@
<item>3</item>
<item>4</item>
</string-array>
<!-- Lockscreen Clock -->
<string-array name="lock_screen_custom_clock_face_entries" translatable="false">
<item>@string/lock_screen_custom_clock_face_default</item>
<item>@string/lock_screen_custom_clock_face_sfunny</item>
<item>@string/lock_screen_custom_clock_face_oos</item>
<item>@string/lock_screen_custom_clock_face_clockertino</item>
<item>@string/lock_screen_custom_clock_face_spark</item>
<item>@string/lock_screen_custom_clock_face_spark_circle</item>
</string-array>
<string-array name="lock_screen_custom_clock_face_values" translatable="false">
<item>com.android.keyguard.clock.DefaultClockController</item>
<item>com.android.keyguard.clock.SfunnyClockController</item>
<item>com.android.keyguard.clock.OOSClockController</item>
<item>com.android.keyguard.clock.ClockertinoClockController</item>
<item>com.android.keyguard.clock.SparkClockController</item>
<item>com.android.keyguard.clock.SparkCircleClockController</item>
</string-array>
</resources>

View File

@@ -604,4 +604,14 @@
<string name="disable_usercard_title">Settings UserCard</string>
<string name="disable_usercard_summary">Toggle in order not to show the usercard on main settings page</string>
<!-- Lockscreen Clocks -->
<string name="lock_screen_custom_clock_face_category">Lockscreen Clock</string>
<string name="lock_screen_custom_clock_face_title">Lockscreen clock style</string>
<string name="lock_screen_custom_clock_face_default">Default</string>
<string name="lock_screen_custom_clock_face_sfunny">Sfuny</string>
<string name="lock_screen_custom_clock_face_oos">OOS</string>
<string name="lock_screen_custom_clock_face_clockertino">Clockertino</string>
<string name="lock_screen_custom_clock_face_spark">Spark</string>
<string name="lock_screen_custom_clock_face_spark_circle">Spark Circle</string>
</resources>

View File

@@ -57,6 +57,18 @@
android:title="@string/lockscreen_charging_info_title"
android:summary="@string/lockscreen_charging_info_summary"
android:defaultValue="true" />
<PreferenceCategory
android:title="@string/lock_screen_custom_clock_face_category">
<ListPreference
android:key="lock_screen_custom_clock_face"
android:summary="%s"
android:title="@string/lock_screen_custom_clock_face_title"
android:entries="@array/lock_screen_custom_clock_face_entries"
android:entryValues="@array/lock_screen_custom_clock_face_values" />
</PreferenceCategory>
<PreferenceCategory
android:key="lockscreen_media_art_options"