Merge "Skip transfer splash screen if activity is destroying or destroyed" into tm-dev am: cdb9f0c8aa

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17077330

Change-Id: I407a34d5a1200d89e948b14e8904704230434978
This commit is contained in:
TreeHugger Robot
2022-03-07 08:50:59 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 3 deletions

View File

@@ -64,11 +64,11 @@ public abstract class ActivityTransactionItem extends ClientTransactionItem {
final ActivityClientRecord r = client.getActivityClient(token);
if (r == null) {
throw new IllegalArgumentException("Activity client record must not be null to execute "
+ "transaction item");
+ "transaction item: " + this);
}
if (client.getActivity(token) == null) {
throw new IllegalArgumentException("Activity must not be null to execute "
+ "transaction item");
+ "transaction item: " + this);
}
return r;
}

View File

@@ -2452,7 +2452,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
// either way, abort and reset the sequence.
if (parcelable == null
|| mTransferringSplashScreenState != TRANSFER_SPLASH_SCREEN_COPYING
|| mStartingWindow == null) {
|| mStartingWindow == null
|| finishing) {
if (parcelable != null) {
parcelable.clearIfNeeded();
}