Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32d7ad08 authored by Brad Hinegardner's avatar Brad Hinegardner Committed by Automerger Merge Worker
Browse files

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

parents a1acd0a5 d8d6ce33
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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(