Cherish:Move double tap gestures to statusbar/lockscreen

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2022-08-28 09:34:18 +07:00
parent d9beb90c32
commit 75097c1370
4 changed files with 24 additions and 12 deletions

View File

@@ -167,6 +167,7 @@
<string name="double_tap_to_sleep_summary">Double tap on the status bar to put the device to sleep</string>
<!-- Lockscreen double tap to sleep -->
<string name="lockscreen_gesture_title">Gestures</string>
<string name="double_tap_sleep_lockscreen_title">Lockscreen double tap to sleep</string>
<string name="double_tap_sleep_lockscreen_summary">Double tap anywhere on the lockscreen to put the device to sleep</string>

View File

@@ -17,17 +17,5 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/gestures_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_lockscreen"
android:title="@string/double_tap_sleep_lockscreen_title"
android:summary="@string/double_tap_sleep_lockscreen_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_gesture"
android:title="@string/double_tap_to_sleep_title"
android:summary="@string/double_tap_to_sleep_summary"
android:defaultValue="true" />
</PreferenceScreen>

View File

@@ -18,6 +18,17 @@
android:title="@string/lockscreen_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:title="@string/lockscreen_gesture_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_lockscreen"
android:title="@string/double_tap_sleep_lockscreen_title"
android:summary="@string/double_tap_sleep_lockscreen_summary"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="lockscreen_media_art_options"
android:title="@string/lockscreen_media_art_options_title">

View File

@@ -15,6 +15,18 @@
android:title="@string/statusbar_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:title="@string/lockscreen_gesture_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_gesture"
android:title="@string/double_tap_to_sleep_title"
android:summary="@string/double_tap_to_sleep_summary"
android:defaultValue="true" />
</PreferenceCategory>
<Preference
android:key="network_traffic_settings"
android:title="@string/network_traffic_title"