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

Commit 2efa38f8 authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Call onAnimationEnd after animation duration ends for tap to cast.

Flag: EXEMPT BugFix
Bug: 363403530
Test: Checked UI
Change-Id: Idb5b5eb149cd445c31e10821ac55270677c30f16
parent 08c1f094
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ constructor(
    context: Context,
    logger: MediaTttReceiverLogger,
    viewCaptureAwareWindowManager: ViewCaptureAwareWindowManager,
    @Main mainExecutor: DelayableExecutor,
    @Main private val mainExecutor: DelayableExecutor,
    accessibilityManager: AccessibilityManager,
    configurationController: ConfigurationController,
    dumpManager: DumpManager,
@@ -285,6 +285,14 @@ constructor(
        } else {
            rippleController.collapseRipple(rippleView, onAnimationEnd)
            animateViewTranslationAndFade(iconContainerView, translationYBy, 0f)
            mainExecutor.executeDelayed(
                {
                    if (view.isAttachedToWindow) {
                        onAnimationEnd.run()
                    }
                },
                ICON_TRANSLATION_ANIM_DURATION,
            )
        }
    }