Merge "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,
|
r.userId, System.identityHashCode(r), r.shortComponentName,
|
||||||
mPausingActivity != null
|
mPausingActivity != null
|
||||||
? mPausingActivity.shortComponentName : "(none)");
|
? mPausingActivity.shortComponentName : "(none)");
|
||||||
if (r.finishing && r.state == ActivityState.PAUSING) {
|
if (r.state == ActivityState.PAUSING) {
|
||||||
if (DEBUG_PAUSE) Slog.v(TAG,
|
r.state = ActivityState.PAUSED;
|
||||||
"Executing finish of failed to pause activity: " + r);
|
if (r.finishing) {
|
||||||
finishCurrentActivityLocked(r, FINISH_AFTER_VISIBLE, false);
|
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