From 7aa0587205077a8f40c0f688be70a6f1e3833418 Mon Sep 17 00:00:00 2001 From: bigrushdog Date: Wed, 6 Dec 2017 10:00:00 +0100 Subject: [PATCH] Hardware key: Customization support [2/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on DUI jhenrique09 edits: make it DUI independent Original commit message: Same robust action library as used on software navigation. Supports single tap, double tap, and long press. As a precautionary measure, single tap back and single tap home are fixed and can not be changed. Camera button actions are not supported at this time. We will bring in wake key support at a later time. Also includes: Change-Id: I29ff38678821ca80db36d49d3b10d8ac29a6b4de DUI: Initial checkin for Oreo [4/7] Signed-off-by: Shubham Singh Signed-off-by: mhkjahromi Signed-off-by: SagarMakhar Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 20 ++++ res/values/cherish_strings.xml | 33 +++++- res/xml/cherish_settings_button.xml | 108 ++++++++++++++++++ .../settings/fragments/ButtonSettings.java | 61 ++++++++++ 4 files changed, 221 insertions(+), 1 deletion(-) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 35e6b42..f06c5a7 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -170,4 +170,24 @@ 0 + + + @string/action_entry_default_action + @string/action_entry_custom_action + @string/action_entry_select_app + + + @string/action_value_default_action + @string/action_value_custom_action + @string/action_value_select_app + + + @string/action_entry_custom_action + @string/action_entry_select_app + + + @string/action_value_custom_action + @string/action_value_select_app + + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index b0b9714..0e16765 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -168,7 +168,38 @@ Jump to camera gesture is now disabled Long press power button - + + default + app + custom + task_back + task_home + task_assist + task_recents + task_voice_search + task_menu + Activities + Select custom app + Select custom activity + Applications + Choose action + Default settings + Select application + Select custom action + Volume rocker + Home button + Menu button + Search button + Overview button + Back button + Set double tap action + Set single tap action + Set long press action + Single tap action + Long press action + Double tap action + + 4G icon Display 4G icon in signal icon instead LTE diff --git a/res/xml/cherish_settings_button.xml b/res/xml/cherish_settings_button.xml index 53388d8..c58d05d 100644 --- a/res/xml/cherish_settings_button.xml +++ b/res/xml/cherish_settings_button.xml @@ -41,6 +41,114 @@ android:title="@string/volume_rocker_wake_title" android:defaultValue="false" android:disableDependentsState="true" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +