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

Commit 54f51b0a authored by Christopher Tate's avatar Christopher Tate Committed by Chris Tate
Browse files

Don't time out startForegroundService when debugging the app

Change-Id: Ica022b028697335f60e5f52f6290b1f47ea0fb55
Fixes: 70870073
Test: manual
parent 33975d7a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3390,10 +3390,15 @@ public final class ActiveServices {
                return;
            }

            app = r.app;
            if (app != null && app.debugging) {
                // The app's being debugged; let it ride
                return;
            }

            if (DEBUG_BACKGROUND_CHECK) {
                Slog.i(TAG, "Service foreground-required timeout for " + r);
            }
            app = r.app;
            r.fgWaiting = false;
            stopServiceLocked(r);
        }