summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorPhil Tunstall <ptunstall@gmail.com>2012-07-27 12:02:38 +0100
committerDvTonder <david.vantonder@gmail.com>2012-12-10 19:45:42 -0500
commit607bdaefa337b73aed8d2ad7ac9439009a5522d1 (patch)
tree936305ab408f04c17a87b03a4347346bc0377a0f /res/values
parentf4c96214f152a9fe196a50d9443d3af9ca507eb4 (diff)
downloadpackages_apps_settings-607bdaefa337b73aed8d2ad7ac9439009a5522d1.zip
packages_apps_settings-607bdaefa337b73aed8d2ad7ac9439009a5522d1.tar.gz
packages_apps_settings-607bdaefa337b73aed8d2ad7ac9439009a5522d1.tar.bz2
Settings: Forward port Hardware key custom rebinding (2/2)
Settings for rebinding the actions performed on the following key press events: Home long-press, menu press, menu long-press, search press, search long-press, app-switch press and app-switch long-press. The available actions are: Nothing, open/close menu, recent apps switcher, search assistant, voice search and in-app search. Devices with a key configuration other than home, back, menu and search need to set config_deviceHardwareKeys in an overlay to have the correct preferences show up. Change-Id: Id04a598aeb9829d7971dedbd171a61999ce2f919
Diffstat (limited to 'res/values')
-rw-r--r--res/values/arrays.xml18
-rw-r--r--res/values/strings.xml22
2 files changed, 40 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 391d637..607d76b 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -1163,5 +1163,23 @@
<item>2</item>
</string-array>
+ <string-array name="hardware_keys_action_entries" translatable="false">
+ <item>@string/hardware_keys_action_nothing</item>
+ <item>@string/hardware_keys_action_menu</item>
+ <item>@string/hardware_keys_action_app_switch</item>
+ <item>@string/hardware_keys_action_search</item>
+ <item>@string/hardware_keys_action_voice_search</item>
+ <item>@string/hardware_keys_action_in_app_search</item>
+ </string-array>
+
+ <string-array name="hardware_keys_action_values" translatable="false">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ </string-array>
+
<!-- **** CYANOGENMOD EDITS END **** -->
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 311c456..0809434 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -4842,6 +4842,28 @@
<string name="volbtn_music_controls_summary">When screen off, long-pressing the volume rockers will seek music tracks</string>
<string name="volume_ring_only_description">Ringtone</string>
+ <!-- Hardware keys -->
+ <string name="hardware_keys_title">Hardware keys</string>
+ <string name="hardware_keys_bindings_title">Key actions</string>
+ <string name="hardware_keys_enable_custom_title">Enable custom actions</string>
+ <string name="hardware_keys_home_long_press_title">Home key (long press)</string>
+ <string name="hardware_keys_menu_press_title">Menu key</string>
+ <string name="hardware_keys_menu_long_press_title">Menu key (long press)</string>
+ <string name="hardware_keys_assist_press_title">Search key</string>
+ <string name="hardware_keys_assist_long_press_title">Search key (long press)</string>
+ <string name="hardware_keys_app_switch_press_title">App switch key</string>
+ <string name="hardware_keys_app_switch_long_press_title">App switch key (long press)</string>
+ <string name="hardware_keys_show_overflow_title">Show action overflow</string>
+ <string name="hardware_keys_show_overflow_summary">Display the 3-dot overflow menu button within apps</string>
+ <string name="hardware_keys_show_overflow_toast_enable">The action overflow button may not be visible until apps are restarted</string>
+ <string name="hardware_keys_show_overflow_toast_disable">The action overflow button may not be hidden until apps are restarted</string>
+ <string name="hardware_keys_action_nothing">No action</string>
+ <string name="hardware_keys_action_menu">Open/close menu</string>
+ <string name="hardware_keys_action_app_switch">Recent apps switcher</string>
+ <string name="hardware_keys_action_search">Search assistant</string>
+ <string name="hardware_keys_action_voice_search">Voice search</string>
+ <string name="hardware_keys_action_in_app_search">In-app search</string>
+
<!-- Power Widget -->
<string name="power_widget_title">Power widget</string>
<string name="title_expanded_widget">Power widget</string>