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

Commit 5786c559 authored by Varun Shah's avatar Varun Shah
Browse files

Don't throw ANR if service is not running.

Change-Id: I92a29451cdaa562a322891cef75fa81c7bc82dfc
Fixes: 338670878
Test: atest CtsFgsTimeoutTestCases
parent d34801c1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3930,7 +3930,9 @@ public final class ActiveServices {

            Slog.e(TAG_SERVICE, "FGS ANR'ed: " + sr);
            traceInstant("FGS ANR: ", sr);
            if (sr.app != null) {
                mAm.appNotResponding(sr.app, tr);
            }

            // TODO: Can we close the ANR dialog here, if it's still shown? Currently, the ANR
            // dialog really doesn't remember the "cause" (especially if there have been multiple