Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fa911dd authored by Lorenzo Lucena Maguire's avatar Lorenzo Lucena Maguire
Browse files

Create configuration resources for the Double Tap Power Button Gesture

Create configuration resources to specify:

- Whether double tap power button is enabled/disabled.
- Whether launching the wallet app from the double tap power button is enabled/disabled.
- The default action for the gesture.

Bug: 378704653
Test: Treehugger passes
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap
Change-Id: Ie75948f8c220e14b76b62cd712ebb2903e9196cc
parent 0df244d3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4205,9 +4205,17 @@
         must match the value of config_cameraLaunchGestureSensorType in OEM's HAL -->
    <string translatable="false" name="config_cameraLaunchGestureSensorStringType"></string>

    <!-- Allow the gesture to double tap the power button to trigger a target action. -->
    <bool name="config_doubleTapPowerGestureEnabled">true</bool>
    <!-- Allow the gesture to double tap the power button twice to start the camera while the device
         is non-interactive. -->
    <bool name="config_cameraDoubleTapPowerGestureEnabled">true</bool>
    <!-- Allow the gesture to double tap the power button twice to launch the wallet. -->
    <bool name="config_walletDoubleTapPowerGestureEnabled">true</bool>
    <!-- Default target action for double tap of the power button gesture.
         0: Launch camera
         1: Launch wallet -->
    <integer name="config_defaultDoubleTapPowerGestureAction">0</integer>

    <!-- Allow the gesture to quick tap the power button multiple times to start the emergency sos
         experience while the device is non-interactive. -->
+4 −1
Original line number Diff line number Diff line
@@ -3140,9 +3140,12 @@
  <!-- Gesture -->
  <java-symbol type="integer" name="config_cameraLaunchGestureSensorType" />
  <java-symbol type="string" name="config_cameraLaunchGestureSensorStringType" />
  <java-symbol type="bool" name="config_cameraDoubleTapPowerGestureEnabled" />
  <java-symbol type="integer" name="config_cameraLiftTriggerSensorType" />
  <java-symbol type="string" name="config_cameraLiftTriggerSensorStringType" />
  <java-symbol type="bool" name="config_doubleTapPowerGestureEnabled" />
  <java-symbol type="bool" name="config_cameraDoubleTapPowerGestureEnabled" />
  <java-symbol type="bool" name="config_walletDoubleTapPowerGestureEnabled" />
  <java-symbol type="integer" name="config_defaultDoubleTapPowerGestureAction" />
  <java-symbol type="bool" name="config_emergencyGestureEnabled" />
  <java-symbol type="bool" name="config_defaultEmergencyGestureEnabled" />
  <java-symbol type="bool" name="config_defaultEmergencyGestureSoundEnabled" />