Merge "Ensure state transition of paused activity." am: c2b9c5388a
am: 11695e8081
* commit '11695e8081b269d489b5b4cc0b0c2075baeebc9b':
Ensure state transition of paused activity.
This commit is contained in:
@@ -941,10 +941,13 @@ final class ActivityStack {
|
||||
r.userId, System.identityHashCode(r), r.shortComponentName,
|
||||
mPausingActivity != null
|
||||
? mPausingActivity.shortComponentName : "(none)");
|
||||
if (r.finishing && r.state == ActivityState.PAUSING) {
|
||||
if (DEBUG_PAUSE) Slog.v(TAG,
|
||||
"Executing finish of failed to pause activity: " + r);
|
||||
finishCurrentActivityLocked(r, FINISH_AFTER_VISIBLE, false);
|
||||
if (r.state == ActivityState.PAUSING) {
|
||||
r.state = ActivityState.PAUSED;
|
||||
if (r.finishing) {
|
||||
if (DEBUG_PAUSE) Slog.v(TAG,
|
||||
"Executing finish of failed to pause activity: " + r);
|
||||
finishCurrentActivityLocked(r, FINISH_AFTER_VISIBLE, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user