summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Juan Sebastian Martinez <juansmartinez@google.com> 2023-12-20 16:03:14 -0800
committer Juan Sebastian Martinez <juansmartinez@google.com> 2023-12-20 16:08:48 -0800
commit2d33e18e39f068698ad982f3293aea53d864443e (patch)
treeae76d77a273d7d90ef4960e58110ad15fc1a5184
parent80a235b2051c6316eae243ba7f6b3d9e4433fe23 (diff)
Ignoring user touch feedback settings for keyguard udfps authentication.
The FLAG_IGONRE_GLOBAL_SETTING will ensure that confirm and reject haptics always play when the user succeeds or fails to authenticate. Test: manual: Turn off Touch Feedback on Settings > Sound & Vibration > Vibration & haptics. Verified that haptics play on successful and failed authetication. Bug: 316645639 Flag: NONE Change-Id: I844e628bc58c4b08459dcc2218396e5d9721ef87
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardRootViewBinder.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardRootViewBinder.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardRootViewBinder.kt
index 362e7e6d4770..fad0370a85d7 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardRootViewBinder.kt
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardRootViewBinder.kt
@@ -255,6 +255,7 @@ object KeyguardRootViewBinder {
vibratorHelper.performHapticFeedback(
view,
HapticFeedbackConstants.CONFIRM,
+ HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING,
)
}
}
@@ -264,6 +265,7 @@ object KeyguardRootViewBinder {
vibratorHelper.performHapticFeedback(
view,
HapticFeedbackConstants.REJECT,
+ HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING,
)
}
}