Do not report finish in mergeAnimation...

...if the handler don't know how to process the transition.
So the Transitions can pass that transition to next handler.

Flag: NONE
Bug: 328619216
Test: manual, use alt+tab to relaunch a task where it's activity
is destroyed.

Change-Id: Idf3f78103a56e91806ec2f6e364c6e8e7f4e205c
This commit is contained in:
wilsonshih
2024-03-21 11:30:39 +08:00
committed by Wei Sheng Shih
parent bbdcade30d
commit 7130116894
2 changed files with 3 additions and 7 deletions

View File

@@ -151,7 +151,8 @@ public class KeyboardQuickSwitchViewController {
context.getDeviceProfile().overviewPageSpacing,
QuickStepContract.getWindowCornerRadius(context),
AnimationUtils.loadInterpolator(
context, android.R.interpolator.fast_out_extra_slow_in)));
context, android.R.interpolator.fast_out_extra_slow_in)),
"SlideInTransition");
if (mOnDesktop) {
UI_HELPER_EXECUTOR.execute(() ->
SystemUiProxy.INSTANCE.get(mKeyboardQuickSwitchView.getContext())

View File

@@ -46,12 +46,7 @@ class SlideInRemoteTransition(
mergeTarget: IBinder,
finishCB: IRemoteTransitionFinishedCallback
) {
try {
finishCB.onTransitionFinished(null, Transaction())
} catch (e: RemoteException) {
// Ignore
}
// Do not report finish if we don't know how to handle this transition.
}
override fun startAnimation(