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

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

Add onEndCallback to ContainerAnimationRunner

This CL switches the order of the last two AnimationDelegate constructor arguments in order to be able to call it with three arguments (controller, callback, listener) from java files.

Bug: 247121782
Test: Manual, i.e. tested that callback is invoked after launch animation
Change-Id: Idbee86b5612296f5bfd7a5f3bdf503ee1ff98ad6
parent b5bf8a73
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ class ActivityLaunchAnimator(
        internal val delegate: AnimationDelegate

        init {
            delegate = AnimationDelegate(controller, callback, launchAnimator, listener)
            delegate = AnimationDelegate(controller, callback, listener, launchAnimator)
        }

        @BinderThread
@@ -446,10 +446,10 @@ class ActivityLaunchAnimator(
    constructor(
        private val controller: Controller,
        private val callback: Callback,
        /** The animator to use to animate the window launch. */
        private val launchAnimator: LaunchAnimator = DEFAULT_LAUNCH_ANIMATOR,
        /** Listener for animation lifecycle events. */
        private val listener: Listener? = null
        private val listener: Listener? = null,
        /** The animator to use to animate the window launch. */
        private val launchAnimator: LaunchAnimator = DEFAULT_LAUNCH_ANIMATOR
    ) : RemoteAnimationDelegate<IRemoteAnimationFinishedCallback> {
        private val launchContainer = controller.launchContainer
        private val context = launchContainer.context