Merge "Align the lockscreen shortcuts haptics with the animation" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d8d6ce336f
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user