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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user