summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2021-03-19 13:15:17 +0000
committer Jernej Virag <jernej@google.com> 2021-03-19 13:21:48 +0000
commit3020526b0cc34f6272b170dbbe4397f3f9911607 (patch)
treee47eab63f445fe665bb8f68f29e5c778c5c71db5
parent147b1848226d9ebd276f9995fb86cd41f9a37630 (diff)
Add configuration to control appearance of long press power to assistant setting
This configuration will control whether Settings app will display the setting to allow the user to switch long press on power behaviour from configured default to invocation of assistant app. In case of existing default being configured to assistant option (5) already, the setting will toglee between Assistant and power menu/global actions. Bug: 179175321 Bug: 182983853 Test: Configuration XML update only. Change-Id: Ia220f34c305d5a7c4e54fa9f5ceded096db98103
-rw-r--r--core/res/res/values/config.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index f6fee880bf2f..2a61d9d50750 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -949,6 +949,11 @@
-->
<integer name="config_longPressOnPowerBehavior">1</integer>
+ <!-- Whether the setting to change long press on power behaviour from default to assistant (5)
+ is available in Settings.
+ -->
+ <bool name="config_longPressOnPowerForAssistantSettingAvailable">true</bool>
+
<!-- Control the behavior when the user long presses the power button for a long time.
0 - Nothing
1 - Global actions menu