Avoid activity stopped when relaunching it to resumed
The activity could still in the stopping list while relaunching it to resume state, which may cause the activity to be stopped afterward. Bug: 189413973 Test: wm presubmit Change-Id: Ib77fe682f66504332fda82793b0d6e5a430f8c9d
This commit is contained in:
@@ -8086,6 +8086,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
setState(PAUSED, "relaunchActivityLocked");
|
||||
}
|
||||
|
||||
// The activity may be waiting for stop, but that is no longer appropriate for it.
|
||||
mTaskSupervisor.mStoppingActivities.remove(this);
|
||||
|
||||
configChangeFlags = 0;
|
||||
deferRelaunchUntilPaused = false;
|
||||
preserveWindowOnDeferredRelaunch = false;
|
||||
|
||||
Reference in New Issue
Block a user