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

Commit 050c77b0 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Let Home activity restart during first few crashes"

parents 2ed945ee 12a17af5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2588,6 +2588,13 @@ class ActivityStack extends Task {
        if (r == null || r.app != app) {
            return null;
        }
        if (r.isActivityTypeHome() && mAtmService.mHomeProcess == app) {
            // Home activities should not be force-finished as we have nothing else to go
            // back to. AppErrors will get to it after two crashes in MIN_CRASH_INTERVAL.
            Slog.w(TAG, "  Not force finishing home activity "
                    + r.intent.getComponent().flattenToShortString());
            return null;
        }
        Slog.w(TAG, "  Force finishing activity "
                + r.intent.getComponent().flattenToShortString());
        Task finishedTask = r.getTask();