summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorHazouPH <jgrharbers@gmail.com>2015-06-07 21:09:11 +0200
committerAdnan Begovic <adnan@cyngn.com>2015-10-29 17:36:31 -0700
commit2d5ce26e6c369d3fdeaae1a0fa65e3eea1522a92 (patch)
tree6b4af40013deade4e4fce89a996e241e4d5b8dcc /res
parent86ec224cb4e5aef5a5b230bd4948ca8fb1d16b0d (diff)
downloadpackages_apps_Settings-2d5ce26e6c369d3fdeaae1a0fa65e3eea1522a92.zip
packages_apps_Settings-2d5ce26e6c369d3fdeaae1a0fa65e3eea1522a92.tar.gz
packages_apps_Settings-2d5ce26e6c369d3fdeaae1a0fa65e3eea1522a92.tar.bz2
[2/2] Camera button support
Add support for camera button Based on commit http://review.cyanogenmod.org/#/c/52046/ This patch adds: - Use camera button as wake key - Use focus button as peek and wake key - Use camera button to launch (secure) camera Depends on [1/2] Camera button support in frameworks/base Change-Id: Idb959f24fec880d360afebf194a0bc573e011438
Diffstat (limited to 'res')
-rw-r--r--res/values/cm_strings.xml5
-rw-r--r--res/xml/button_settings.xml24
2 files changed, 29 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 9cc9a66..218284e 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -333,6 +333,7 @@
<string name="hardware_keys_menu_key_title">Menu button</string>
<string name="hardware_keys_assist_key_title">Search button</string>
<string name="hardware_keys_appswitch_key_title">Recents button</string>
+ <string name="hardware_keys_camera_key_title">Camera button</string>
<string name="hardware_keys_volume_keys_title">Volume buttons</string>
<string name="hardware_keys_short_press_title">Short press action</string>
<string name="hardware_keys_long_press_title">Long press action</string>
@@ -346,6 +347,10 @@
<string name="hardware_keys_action_launch_camera">Launch camera</string>
<string name="hardware_keys_action_sleep">Turn screen off</string>
<string name="hardware_keys_action_last_app">Last app</string>
+ <string name="camera_sleep_on_release_title">Screen peek</string>
+ <string name="camera_sleep_on_release_summary">A half press will keep the screen on only while the button is held down</string>
+ <string name="camera_launch_title">Launch camera</string>
+ <string name="camera_launch_summary">A longpress and release will launch camera</string>
<string name="volbtn_music_controls_title">Playback control</string>
<string name="volbtn_music_controls_summary">When the screen is off, long pressing the volume keys will seek music tracks</string>
<string name="volbtn_cursor_control_title">Keyboard cursor control</string>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index 773aebb..272bc22 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -215,6 +215,30 @@
</PreferenceCategory>
<PreferenceCategory
+ android:key="camera_key"
+ android:title="@string/hardware_keys_camera_key_title"
+ settings:advanced="true">
+
+ <com.android.settings.cyanogenmod.SystemSettingSwitchPreference
+ android:key="camera_wake_screen"
+ android:title="@string/button_wake_title"
+ android:defaultValue="false" />
+
+ <com.android.settings.cyanogenmod.SystemSettingSwitchPreference
+ android:key="camera_sleep_on_release"
+ android:title="@string/camera_sleep_on_release_title"
+ android:summary="@string/camera_sleep_on_release_summary"
+ android:defaultValue="false" />
+
+ <com.android.settings.cyanogenmod.SystemSettingSwitchPreference
+ android:key="camera_launch"
+ android:title="@string/camera_launch_title"
+ android:summary="@string/camera_launch_summary"
+ android:defaultValue="false" />
+
+ </PreferenceCategory>
+
+ <PreferenceCategory
android:key="volume_keys"
android:title="@string/hardware_keys_volume_keys_title" >