Merge "Skip transfer splash screen if activity is destroying or destroyed" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cdb9f0c8aa
@@ -64,11 +64,11 @@ public abstract class ActivityTransactionItem extends ClientTransactionItem {
|
|||||||
final ActivityClientRecord r = client.getActivityClient(token);
|
final ActivityClientRecord r = client.getActivityClient(token);
|
||||||
if (r == null) {
|
if (r == null) {
|
||||||
throw new IllegalArgumentException("Activity client record must not be null to execute "
|
throw new IllegalArgumentException("Activity client record must not be null to execute "
|
||||||
+ "transaction item");
|
+ "transaction item: " + this);
|
||||||
}
|
}
|
||||||
if (client.getActivity(token) == null) {
|
if (client.getActivity(token) == null) {
|
||||||
throw new IllegalArgumentException("Activity must not be null to execute "
|
throw new IllegalArgumentException("Activity must not be null to execute "
|
||||||
+ "transaction item");
|
+ "transaction item: " + this);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2452,7 +2452,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
// either way, abort and reset the sequence.
|
// either way, abort and reset the sequence.
|
||||||
if (parcelable == null
|
if (parcelable == null
|
||||||
|| mTransferringSplashScreenState != TRANSFER_SPLASH_SCREEN_COPYING
|
|| mTransferringSplashScreenState != TRANSFER_SPLASH_SCREEN_COPYING
|
||||||
|| mStartingWindow == null) {
|
|| mStartingWindow == null
|
||||||
|
|| finishing) {
|
||||||
if (parcelable != null) {
|
if (parcelable != null) {
|
||||||
parcelable.clearIfNeeded();
|
parcelable.clearIfNeeded();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user