aboutsummaryrefslogtreecommitdiff
path: root/overlay-lineage
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2022-09-02 15:29:56 +0200
committerDavide Garberi <dade.garberi@gmail.com>2022-09-02 15:34:27 +0200
commit9e9659d8d7d3958b4662f2bea9ceca7d576b9a41 (patch)
tree3f7e6153dcc70b50b11e396b337c8b065e4be52a /overlay-lineage
parentf81cbc0b98f4445635d672dabe9dadb00f0df1f3 (diff)
msm8996-common: overlay: button_settings: Disable unsupported options
* In z2 the menu, assist and apps switch keys are mapped to various functions of the Utouch button, that have no way of supporting the long press function * Let's disable them since removing the preference completely makes the menu crash Change-Id: If5a4ec0608a7d57623de99cce5953bbb4803b304
Diffstat (limited to 'overlay-lineage')
-rw-r--r--overlay-lineage/packages/apps/LineageParts/res/xml/button_settings.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/overlay-lineage/packages/apps/LineageParts/res/xml/button_settings.xml b/overlay-lineage/packages/apps/LineageParts/res/xml/button_settings.xml
index b73054b..ff677c4 100644
--- a/overlay-lineage/packages/apps/LineageParts/res/xml/button_settings.xml
+++ b/overlay-lineage/packages/apps/LineageParts/res/xml/button_settings.xml
@@ -209,7 +209,8 @@
android:title="@string/hardware_keys_long_press_title"
android:entries="@array/hardware_keys_action_entries"
android:entryValues="@array/hardware_keys_action_values"
- android:persistent="false" />
+ android:persistent="false"
+ android:enabled="false" />
</PreferenceCategory>
@@ -236,7 +237,8 @@
android:title="@string/hardware_keys_long_press_title"
android:entries="@array/hardware_keys_action_entries"
android:entryValues="@array/hardware_keys_action_values"
- android:persistent="false" />
+ android:persistent="false"
+ android:enabled="false" />
</PreferenceCategory>
@@ -263,7 +265,8 @@
android:title="@string/hardware_keys_long_press_title"
android:entries="@array/hardware_keys_action_entries"
android:entryValues="@array/hardware_keys_action_values"
- android:persistent="false" />
+ android:persistent="false"
+ android:enabled="false" />
</PreferenceCategory>