Merge "Don't transfer splash screen if activity is finishing." into tm-dev

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

View File

@@ -2476,7 +2476,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
}
private boolean transferSplashScreenIfNeeded() {
if (!mHandleExitSplashScreen || mStartingSurface == null || mStartingWindow == null
if (finishing || !mHandleExitSplashScreen || mStartingSurface == null
|| mStartingWindow == null
|| mTransferringSplashScreenState == TRANSFER_SPLASH_SCREEN_FINISH) {
return false;
}