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

Commit d2847f7f authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

Merge "Don't time out startForegroundService when debugging the app" into pi-dev am: 17c8224c

am: 11cc1422

Change-Id: Ie611d6d934ebfe70a13ff620b017492601ac5623
parents 5baeeefe 11cc1422
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);
        }