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

Commit 3c15859b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Call onAnimationEnd after animation duration ends for tap to cast." into main

parents a720ebd5 2efa38f8
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,
            )
        }
    }