Merge "Align the lockscreen shortcuts haptics with the animation" into udc-dev am: d8d6ce336f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23036927

Change-Id: I950e331b509dc47f8a558631405519e1713e98e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Brad Hinegardner
2023-05-05 16:04:53 +00:00
committed by Automerger Merge Worker

View File

@@ -31,7 +31,9 @@ object KeyguardBottomAreaVibrations {
VibrationEffect.startComposition()
.apply {
val vibrationDelayMs =
(ShakeAnimationDuration.inWholeMilliseconds / ShakeAnimationCycles * 2).toInt()
(ShakeAnimationDuration.inWholeMilliseconds / (ShakeAnimationCycles * 2))
.toInt()
val vibrationCount = ShakeAnimationCycles.toInt() * 2
repeat(vibrationCount) {
addPrimitive(