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

Commit 81904566 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Fix animation mismatch between privacy chip and persistent dot

Bug: 295274992
Test: Manual, i.e. testing the privacy chip animation on multiple devices
Change-Id: I79ba92b36a984ba78e92795b0570e1d7b8714431
parent 3393c82f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -168,10 +168,8 @@ class SystemEventChipAnimationController @Inject constructor(
        }

        val keyFrame1Height = dotSize * 2
        val v = currentAnimatedView!!.view
        val chipVerticalCenter = v.top + v.measuredHeight / 2
        val height1 = ValueAnimator.ofInt(
                currentAnimatedView!!.view.measuredHeight, keyFrame1Height).apply {
        val chipVerticalCenter = chipBounds.top + chipBounds.height() / 2
        val height1 = ValueAnimator.ofInt(chipBounds.height(), keyFrame1Height).apply {
            startDelay = 8.frames
            duration = 6.frames
            interpolator = STATUS_CHIP_HEIGHT_TO_DOT_KEYFRAME_1