Hardware key: Enable single tap rebinding for hwkey back and home
Initially, this policy was put in place to safeguard the UX by preventing a usecase where the device could be put in a state without back or home available. However, if a user puts the device in this state, it is easy enough to navigate to button settings to fix it Change-Id: I6b71f9e54fcb99356e07f236e9ed926ac5fc017e Signed-off-by: mhkjahromi <m.h.k.jahromi@gmail.com> Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -44,6 +44,12 @@
|
||||
<PreferenceCategory
|
||||
android:key="back_key"
|
||||
android:title="@string/hardware_keys_back_key_title" >
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_back_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title" >
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_back_long_press"
|
||||
@@ -62,6 +68,12 @@
|
||||
<PreferenceCategory
|
||||
android:key="home_key"
|
||||
android:title="@string/hardware_keys_home_key_title" >
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_home_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title" >
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_home_long_press"
|
||||
|
||||
@@ -156,6 +156,11 @@ public class ButtonSettings extends SettingsPreferenceFragment implements
|
||||
return MetricsProto.MetricsEvent.CHERISH_SETTINGS;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean usesExtendedActionsList() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* For Search.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user