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

@@ -18,7 +18,12 @@
android:title="@string/lockscreen_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
<!-- Lock screen -->
<PreferenceCategory
android:key="lockscreen_category"
android:title="@string/lockscreen_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_battery_info"
android:icon="@drawable/ic_batteryenergy"
android:title="@string/lockscreen_battery_info_title"
@@ -27,7 +32,7 @@
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="lockscreen_charging_animation_style"
android:icon="@drawable/ic_charging"
android:icon="@drawable/ic_charging"
android:dialogTitle="@string/lockscreen_charging_animation_title"
android:title="@string/lockscreen_charging_animation_title"
android:entries="@array/lockscreen_charging_animation_entries"
@@ -35,6 +40,19 @@
android:summary="%s"
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 -->
<PreferenceCategory
android:key="lockscreen_clock"
@@ -108,6 +126,7 @@
android:fragment="com.cherish.settings.fragments.FODIconPickerFragment" />
</PreferenceCategory>
<SwitchPreference
android:key="fingerprint_success_vib"
android:icon="@drawable/ic_fingerprint"