From 9e9659d8d7d3958b4662f2bea9ceca7d576b9a41 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Fri, 2 Sep 2022 15:29:56 +0200 Subject: 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 --- .../packages/apps/LineageParts/res/xml/button_settings.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'overlay-lineage') 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" /> @@ -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" /> @@ -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" /> -- cgit v1.2.3