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

Commit 4a2790e4 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Using USAGE_HARDWARE_FEEDBACK in authentication haptics.

This usage will continue to play authentication haptics when battery
saver is on, and when the touch feedback slider in Vibration & Haptics
is set to zero. In addition, it will avoid authentication haptics to be
re-scaled as a result of adaptive haptics.

Test: manual. Verified that authentication haptics behave as expected
  with biometrics and bouncer authentication.
Flag: EXEMPT minor change to vibration attributes.
Bug: 436157447
Change-Id: I08ffdfa75a9d889a4c23c106f70188bd29d89bb8
parent cda0f42f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,5 +25,5 @@ import com.google.android.msdl.domain.InteractionProperties
 */
data class AuthInteractionProperties(
    override val vibrationAttributes: VibrationAttributes =
        VibrationAttributes.createForUsage(VibrationAttributes.USAGE_COMMUNICATION_REQUEST)
        VibrationAttributes.createForUsage(VibrationAttributes.USAGE_HARDWARE_FEEDBACK)
) : InteractionProperties