Cherish:Add lockscreen tuner preference

This commit is contained in:
Hưng Phan
2020-08-28 23:05:50 +07:00
parent 76135463ad
commit 262ca1f6fa
3 changed files with 33 additions and 2 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="M12,14A2,2 0 0,1 14,16A2,2 0 0,1 12,18A2,2 0 0,1 10,16A2,2 0 0,1 12,14M23.46,8.86L21.87,15.75L15,14.16L18.8,11.78C17.39,9.5 14.87,8 12,8C8.05,8 4.77,10.86 4.12,14.63L2.15,14.28C2.96,9.58 7.06,6 12,6C15.58,6 18.73,7.89 20.5,10.72L23.46,8.86Z" />
</vector>

View File

@@ -681,4 +681,9 @@
<string name="fp_unlock_keystore_title">Fingerprint unlock</string> <string name="fp_unlock_keystore_title">Fingerprint unlock</string>
<string name="fp_unlock_keystore_summary">Unlock device with fingerprint after reboot without PIN/Password/Pattern\nNote: at your own risk!</string> <string name="fp_unlock_keystore_summary">Unlock device with fingerprint after reboot without PIN/Password/Pattern\nNote: at your own risk!</string>
<!-- Lockscreen -->
<string name="lockscreen_category">Lockscreen</string>
<string name="lockscreen_tuner_title">Lockscreen bottom shortcuts</string>
<string name="lockscreen_tuner_summary">Customize bottom left and right shortcuts</string>
</resources> </resources>

View File

@@ -18,6 +18,11 @@
android:title="@string/lockscreen_title" android:title="@string/lockscreen_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<!-- Lock screen -->
<PreferenceCategory
android:key="lockscreen_category"
android:title="@string/lockscreen_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference <com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_battery_info" android:key="lockscreen_battery_info"
android:icon="@drawable/ic_batteryenergy" android:icon="@drawable/ic_batteryenergy"
@@ -35,6 +40,19 @@
android:summary="%s" android:summary="%s"
android:defaultValue="1" /> android:defaultValue="1" />
<Preference
android:title="@string/lockscreen_tuner_title"
android:icon="@drawable/ic_shortcut"
android:summary="@string/lockscreen_tuner_summary" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.android.systemui"
android:targetClass="com.android.systemui.tuner.LockscreenActivity" />
</Preference>
</PreferenceCategory>
<!-- Lockscreen Clock --> <!-- Lockscreen Clock -->
<PreferenceCategory <PreferenceCategory
android:key="lockscreen_clock" android:key="lockscreen_clock"
@@ -108,6 +126,7 @@
android:fragment="com.cherish.settings.fragments.FODIconPickerFragment" /> android:fragment="com.cherish.settings.fragments.FODIconPickerFragment" />
</PreferenceCategory> </PreferenceCategory>
<SwitchPreference <SwitchPreference
android:key="fingerprint_success_vib" android:key="fingerprint_success_vib"
android:icon="@drawable/ic_fingerprint" android:icon="@drawable/ic_fingerprint"