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

This commit is contained in:
Brad Hinegardner
2023-05-05 15:18:22 +00:00
committed by Android (Google) Code Review

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(