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

Commit ecf81fdc authored by Hui Yu's avatar Hui Yu Committed by Android (Google) Code Review
Browse files

Merge "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"

parents 2981024f c7956f0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -694,7 +694,7 @@ public class ActivityManager {

    /** @hide Should this process state be considered a background state? */
    public static final boolean isProcStateBackground(int procState) {
        return procState >= PROCESS_STATE_TRANSIENT_BACKGROUND;
        return procState > PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
    }

    /** @hide Is this a foreground service type? */