From 5d54c1b6eab6a5acc6255739f362435a2dbf2202 Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Wed, 19 Oct 2022 20:21:44 +0800 Subject: [PATCH] Ensure the animation finish sequence by synchronize call. By making IBackAnimationFinishedCallback synchronize call, the client app won't have chance to create a transition before core receives onAnimationFinished, which could play the second close animation from that transition. Note: Shell side change can be found in ag/20459278. Bug: 131727607 Test: monitor client won't create close transition before core handled onAnimationFinished. Change-Id: Iad3c70c14727d438633d804a573000f8b71b023e --- core/java/android/window/IBackAnimationFinishedCallback.aidl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/window/IBackAnimationFinishedCallback.aidl b/core/java/android/window/IBackAnimationFinishedCallback.aidl index 8afc003256edd..f034339add6e8 100644 --- a/core/java/android/window/IBackAnimationFinishedCallback.aidl +++ b/core/java/android/window/IBackAnimationFinishedCallback.aidl @@ -22,6 +22,6 @@ package android.window; * @param trigger Whether the back gesture has passed the triggering threshold. * {@hide} */ -oneway interface IBackAnimationFinishedCallback { +interface IBackAnimationFinishedCallback { void onAnimationFinished(in boolean triggerBack); } \ No newline at end of file