Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d5b6f7d authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

Merge "Check if last resumed activity is null before resuming." into pi-dev

am: 01e4949f

Change-Id: Ief22a3392b287efe11b46a29c6987560b92ab942
parents 9c3f16f0 01e4949f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2707,9 +2707,12 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
                    if (DEBUG_STATES) Slog.v(TAG_STATES, "Resume failed; resetting state to "
                            + lastState + ": " + next);
                    next.setState(lastState, "resumeTopActivityInnerLocked");
                    if (lastStack != null) {

                    // lastResumedActivity being non-null implies there is a lastStack present.
                    if (lastResumedActivity != null) {
                        lastResumedActivity.setState(RESUMED, "resumeTopActivityInnerLocked");
                    }

                    Slog.i(TAG, "Restarting because process died: " + next);
                    if (!next.hasBeenLaunched) {
                        next.hasBeenLaunched = true;