Cherish:Pimp the power menu out [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Alex Cruz
2017-09-19 19:17:56 +08:00
committed by Hưng Phan
parent e1a4c986a6
commit 9354fecbab
2 changed files with 60 additions and 0 deletions

View File

@@ -471,4 +471,19 @@
<!-- Alert Slider Notifications (OnePlus devices) -->
<string name="alert_slider_notifications_title">Alert slider notifications</string>
<string name="alert_slider_notifications_summary">Display notification when changing alert slider position</string>
<!-- Power Menu -->
<string name="power_menu_title">Power menu</string>
<string name="power_menu_title_summary">View or change power menu entries</string>
<string name="powermenu_screenshot">Screenshot</string>
<string name="powermenu_power">Power</string>
<string name="powermenu_advanced">Advanced reboot options</string>
<string name="powermenu_restart">Restart</string>
<string name="powermenu_airplane">Airplane</string>
<string name="powermenu_settings">Settings</string>
<string name="powermenu_lockdown">Lock Down</string>
<string name="powermenu_soundpanel">Sound Panel</string>
<string name="powermenu_users">Users</string>
<string name="powermenu_logout">Logout</string>
<string name="powermenu_emergency">Emergency</string>
</resources>

View File

@@ -18,4 +18,49 @@
android:title="@string/powermenu_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_power"
android:title="@string/powermenu_power"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_restart"
android:title="@string/powermenu_restart"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_advanced"
android:title="@string/powermenu_advanced"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_screenshot"
android:title="@string/powermenu_screenshot"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_settings"
android:title="@string/powermenu_settings"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_lockdown"
android:title="@string/powermenu_lockdown"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_emergency"
android:title="@string/powermenu_emergency"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_users"
android:title="@string/powermenu_users"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="powermenu_logout"
android:title="@string/powermenu_logout"
android:defaultValue="false" />
</PreferenceScreen>