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
This commit is contained in:
wilsonshih
2022-10-19 20:21:44 +08:00
parent d08a3d764c
commit 5d54c1b6ea

View File

@@ -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);
}