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

Commit 72ef6044 authored by Michael Mikhail's avatar Michael Mikhail
Browse files

[Media TTT] Polish Sender Chip Animation

Reduces the duration when animating out.

Bug: 256203002.
Test: checked the animation of the chipbar after executing adb commands.
Change-Id: I5d6f27d40eeebb62afd965a3d532b7d80a4fd764
parent 4c430266
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ open class ChipbarCoordinator @Inject constructor(
            chipInnerView,
            ViewHierarchyAnimator.Hotspot.TOP,
            Interpolators.EMPHASIZED_DECELERATE,
            duration = ANIMATION_DURATION,
            duration = ANIMATION_IN_DURATION,
            includeMargins = true,
            includeFadeIn = true,
            // We can only request focus once the animation finishes.
@@ -187,7 +187,7 @@ open class ChipbarCoordinator @Inject constructor(
            view.requireViewById<ViewGroup>(R.id.chipbar_inner),
            ViewHierarchyAnimator.Hotspot.TOP,
            Interpolators.EMPHASIZED_ACCELERATE,
            ANIMATION_DURATION,
            ANIMATION_OUT_DURATION,
            includeMargins = true,
            onAnimationEnd,
        )
@@ -208,4 +208,5 @@ open class ChipbarCoordinator @Inject constructor(
    }
}

private const val ANIMATION_DURATION = 500L
private const val ANIMATION_IN_DURATION = 500L
private const val ANIMATION_OUT_DURATION = 250L