Double tap to sleep on statusbar [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
ezio84
2017-09-09 13:48:36 +08:00
committed by Hưng Phan
parent eba04ecb70
commit 3279243f8b
2 changed files with 16 additions and 0 deletions

View File

@@ -147,4 +147,9 @@
<string name="lockscreen_gesture_title">Gestures</string>
<string name="double_tap_to_sleep_lockscreen_title">Double tap to sleep</string>
<string name="double_tap_to_sleep_lockscreen_summary">Double tap on the top third or bottom shortcut area of the lock screen to put the device to sleep</string>
<!-- Double Tap Statusbar to Sleep -->
<string name="statusbar_gesture_title">Gestures</string>
<string name="double_tap_to_sleep_statusbar_title">Double tap to sleep</string>
<string name="double_tap_to_sleep_statusbar_summary">Double tap on statusbar to put the device to sleep</string>
</resources>

View File

@@ -15,6 +15,17 @@
android:title="@string/statusbar_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:title="@string/statusbar_gesture_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_gesture"
android:title="@string/double_tap_to_sleep_statusbar_title"
android:summary="@string/double_tap_to_sleep_statusbar_summary"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="statusbar_icons"
android:title="@string/sb_icons">