Skip to content

Commit

Permalink
overlay: Change global actions gestures defaults
Browse files Browse the repository at this point in the history
Settings use these values to _restore_ the default state for
power menu long press and volume key chord combo.

Sadly they assume default is power menu instead
of assistant and vib/mute toggle instead of global actions,
simply change them to restore a sane behaviour.

Change-Id: I0187bc4e1cd991c9516560e2d8ae24fc388dddd0
  • Loading branch information
luca020400 authored and ArianK16a committed Oct 15, 2021
1 parent 5a4a0c7 commit ad6da90
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,21 @@

<!-- Flag indicating which package name can access DeviceConfig table -->
<string name="config_deviceConfiguratorPackageName" translatable="false">org.protonaosp.deviceconfig</string>

<!-- Control the behavior when the user long presses the power button.
0 - Nothing
1 - Global actions menu
2 - Power off (with confirmation)
3 - Power off (without confirmation)
4 - Go to voice assist
5 - Go to assistant (Settings.Secure.ASSISTANT)
-->
<integer name="config_longPressOnPowerBehavior">1</integer>

<!-- Control the behavior when the user presses the power and volume up buttons together.
0 - Nothing
1 - Mute toggle
2 - Global actions menu
-->
<integer name="config_keyChordPowerVolumeUp">1</integer>
</resources>

0 comments on commit ad6da90

Please sign in to comment.