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

Commit 2d72be20 authored by Kevin Hester-Chow's avatar Kevin Hester-Chow
Browse files

Do not assume that there is always a running activity

(Necessary for headless devices)

Change-Id: I61969ebfdd4aa02a3661272a0bcd0aa67667f115
parent 7cdf617f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7157,7 +7157,7 @@ public final class ActivityManagerService extends ActivityManagerNative
            mMainStack.resumeTopActivityLocked(null);
        } else {
            ActivityRecord r = mMainStack.topRunningActivityLocked(null);
            if (r.app == app) {
            if (r != null && r.app == app) {
                // If the top running activity is from this crashing
                // process, then terminate it to avoid getting in a loop.
                Slog.w(TAG, "  Force finishing activity "