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

Commit d87a9be4 authored by Kevin Hester-Chow's avatar Kevin Hester-Chow Committed by Mike Lockwood
Browse files

Do not assume that there is always a running activity

(Necessary for headless devices)

Change-Id: I69d4e518df99a02f2fbf19a9d86a693cea292f80
parent 6c798970
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7445,7 +7445,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 "