Cherish:Add an option to ask pin for shutdown/reboot on secure lockscreen [2/2]

This commit is contained in:
DarkJoker360
2020-04-15 13:49:34 +07:00
committed by Hung Phan
parent bdf8835e5d
commit 84efe6f23e
4 changed files with 46 additions and 6 deletions

View File

@@ -46,7 +46,16 @@
android:title="@string/advanced_reboot_title"
android:summary="@string/advanced_reboot_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.GlobalSettingSwitchPreference
android:key="power_menu_emergency_affordance"
android:icon="@drawable/ic_emergency"
android:title="@string/power_menu_emergency_title"
android:defaultValue="true" />
<PreferenceCategory
android:title="@string/lockscreen_secure_power_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_disable_power_menu"
android:title="@string/lockscreen_power_menu_disabled_title"
@@ -54,9 +63,11 @@
android:defaultValue="false" />
<com.cherish.settings.preferences.GlobalSettingSwitchPreference
android:key="power_menu_emergency_affordance"
android:icon="@drawable/ic_emergency"
android:title="@string/power_menu_emergency_title"
android:defaultValue="true" />
android:key="lockscreen_powermenu_secure"
android:icon="@drawable/ic_lock_outline"
android:title="@string/lockscreen_secure_power_menu_title"
android:summary="@string/lockscreen_secure_power_menu_summary"
android:dependency="lockscreen_enable_power_menu"
android:defaultValue="false" />
</PreferenceCategory>
</PreferenceScreen>