diff options
author | black <blackzigong@gmail.com> | 2014-09-13 22:33:49 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-29 17:36:28 -0700 |
commit | 68b424541b87f0befa7a519b5eaf22189ba85972 (patch) | |
tree | 199adceb2980a6480edef2010defb938e75511e5 | |
parent | bcd2b57276599e21009f4a180575001650915176 (diff) | |
download | packages_apps_Settings-68b424541b87f0befa7a519b5eaf22189ba85972.zip packages_apps_Settings-68b424541b87f0befa7a519b5eaf22189ba85972.tar.gz packages_apps_Settings-68b424541b87f0befa7a519b5eaf22189ba85972.tar.bz2 |
Settings: add double-tap to sleep in Advanced Settings
Adapted for cm-12.0
Change-Id: I910eb6624536b437d0bf14f64c1eeacafaa59cfa
-rw-r--r-- | res/values/cm_strings.xml | 4 | ||||
-rw-r--r-- | res/xml/display_settings.xml | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 8ec4213..c1832d4 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -405,4 +405,8 @@ <!--- Tap To Wake --> <string name="double_tap_to_wake_title">Double-tap to wake</string> + + <!-- tap-to-sleep --> + <string name="double_tap_to_sleep_title">Double-tap to sleep</string> + <string name="double_tap_to_sleep_summary">Double tap status bar or lock screen slider to put the device to sleep</string> </resources> diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index 66aaac6..85ac374 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -104,5 +104,11 @@ <SwitchPreference android:key="double_tap_wake_gesture" android:title="@string/double_tap_to_wake_title" /> + + <com.android.settings.cyanogenmod.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> </PreferenceScreen> |