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()
|
VibrationEffect.startComposition()
|
||||||
.apply {
|
.apply {
|
||||||
val vibrationDelayMs =
|
val vibrationDelayMs =
|
||||||
(ShakeAnimationDuration.inWholeMilliseconds / ShakeAnimationCycles * 2).toInt()
|
(ShakeAnimationDuration.inWholeMilliseconds / (ShakeAnimationCycles * 2))
|
||||||
|
.toInt()
|
||||||
|
|
||||||
val vibrationCount = ShakeAnimationCycles.toInt() * 2
|
val vibrationCount = ShakeAnimationCycles.toInt() * 2
|
||||||
repeat(vibrationCount) {
|
repeat(vibrationCount) {
|
||||||
addPrimitive(
|
addPrimitive(
|
||||||
|
|||||||
Reference in New Issue
Block a user