Merge "Fix extra onStop when finishing after onCreate" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
008483c045
@@ -4549,7 +4549,7 @@ public final class ActivityThread extends ClientTransactionHandler {
|
||||
if (!show && !r.stopped) {
|
||||
performStopActivityInner(r, null /* stopInfo */, show, false /* saveState */,
|
||||
false /* finalStateRequest */, "handleWindowVisibility");
|
||||
} else if (show && r.stopped) {
|
||||
} else if (show && r.getLifecycleState() == ON_STOP) {
|
||||
// If we are getting ready to gc after going to the background, well
|
||||
// we are back active so skip it.
|
||||
unscheduleGcIdler();
|
||||
|
||||
Reference in New Issue
Block a user