Merge "Fixes onBackAnimationFinished executed in binder thread."

This commit is contained in:
Wei Sheng Shih
2022-11-16 03:02:23 +00:00
committed by Android (Google) Code Review

View File

@@ -611,8 +611,8 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont
mBackAnimationFinishedCallback = finishedCallback;
ProtoLog.d(WM_SHELL_BACK_PREVIEW, "BackAnimationController: startAnimation()");
runner.startAnimation(apps, wallpapers, nonApps,
BackAnimationController.this::onBackAnimationFinished);
runner.startAnimation(apps, wallpapers, nonApps, () -> mShellExecutor.execute(
BackAnimationController.this::onBackAnimationFinished));
if (apps.length >= 1) {
dispatchOnBackStarted(