[2/3] OmniGears: add custom hardware button mapping
This allows for changing of what hardware buttons do.
This is taken from android-4.4 and things that
are commented out will be implemented later.
requires: https://gerrit.omnirom.org/11103
PS2: fix code style (red alerts)
PS3: fix code style (use space instead tabs)
PS5:
-added volume wake
-changed check for hw navigation buttons to use
config_deviceHardwareKeys
Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I8a0a382e2ac5ad36dd47845b8b0380135e45d9d8
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
new file mode 100644
index 0000000..071b994
--- /dev/null
+++ b/res/values/custom_strings.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The OmniROM Project
+
+ Parts Copyright (C) 2012-2013 The CyanogenMod Project
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ -->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Hardware keys -->
+ <string name="button_keys_title">Keys</string>
+ <string name="keys_bindings_title">Key actions</string>
+ <string name="button_keys_back_title" >Back key</string>
+ <string name="button_keys_home_title" >Home key</string>
+ <string name="button_keys_menu_title" >Menu key</string>
+ <string name="button_keys_assist_title" >Search key</string>
+ <string name="button_keys_appSwitch_title" >App switch key</string>
+ <string name="keys_enable_custom_title">Custom actions</string>
+ <string name="keys_back_press_title">Back key</string>
+ <string name="keys_back_long_press_title">Back key (long press)</string>
+ <string name="keys_home_press_title">Home key</string>
+ <string name="keys_home_long_press_title">Home key (long press)</string>
+ <string name="keys_home_double_tap_title">Home key (double tap)</string>
+ <string name="keys_menu_press_title">Menu key</string>
+ <string name="keys_menu_long_press_title">Menu key (long press)</string>
+ <string name="keys_assist_press_title">Search key</string>
+ <string name="keys_assist_long_press_title">Search key (long press)</string>
+ <string name="keys_app_switch_press_title">App switch key</string>
+ <string name="keys_app_switch_long_press_title">App switch key (long press)</string>
+ <string name="keys_action_nothing">No action</string>
+ <string name="keys_action_menu">Open/close menu</string>
+ <string name="keys_action_app_switch">Recent apps switcher</string>
+ <string name="keys_action_search">Search assistant</string>
+ <string name="keys_action_voice_search">Voice search</string>
+ <string name="keys_action_in_app_search">In-app search</string>
+ <string name="keys_action_home">Home button</string>
+ <string name="keys_action_back">Back button</string>
+ <string name="keys_action_last_app">Switch to last app</string>
+ <string name="keys_action_kill_app">Kill app</string>
+ <string name="keys_action_normal">Normal press</string>
+ <string name="keys_action_long">Long press</string>
+ <string name="keys_action_double">Double tap</string>
+ <string name="dialog_no_home_key_title">No home action</string>
+ <string name="no_home_key">You have no button assigned to the \"Home\" action! This can make your device unusable!</string>
+ <string name="button_volume_keys_title">Volume</string>
+ <string name="button_volume_wake_title">Button wake</string>
+ <string name="button_volume_wake_summary">Pressing a volume button will wake the device</string>
+</resources>