Cherish:Add Double tap to sleep on statusbar and lockscreen [2/2]
Change-Id: I49e8d92d3d425d361c9302ec1d597f059f7f2144 Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
7
res/drawable/ic_tap.xml
Normal file
7
res/drawable/ic_tap.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5Z" />
|
||||
</vector>
|
||||
@@ -225,4 +225,9 @@
|
||||
<string name="fprint_error_vib_title">Fingerprint error vibration</string>
|
||||
<string name="fprint_error_vib_summary">Vibrate on error fingerprint authentication</string>
|
||||
|
||||
<!--Double Tap to Sleep -->
|
||||
<string name="double_tap_gestures_category_title">Double tap gestures</string>
|
||||
<string name="double_tap_sleep_gesture_title">Double tap to sleep on status bar</string>
|
||||
<string name="double_tap_sleep_lockscreen_title">Double tap to sleep on lockscreen</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -18,8 +18,25 @@
|
||||
android:title="@string/gestures_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="double_tap_gestures_category"
|
||||
android:title="@string/double_tap_gestures_category_title">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="double_tap_sleep_gesture"
|
||||
android:icon="@drawable/ic_tap"
|
||||
android:title="@string/double_tap_sleep_gesture_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="double_tap_sleep_lockscreen"
|
||||
android:icon="@drawable/ic_tap"
|
||||
android:title="@string/double_tap_sleep_lockscreen_title"
|
||||
android:defaultValue="false" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:icon="@drawable/ic_torch"
|
||||
android:icon="@drawable/ic_torch"
|
||||
android:key="torch_long_press_power_gesture"
|
||||
android:title="@string/torch_long_press_power_gesture_title"
|
||||
android:summary="@string/torch_long_press_power_gesture_desc"
|
||||
|
||||
Reference in New Issue
Block a user