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

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

Merge "Revert "Change isProcStateBackground() cutoff to...

Merge "Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"" into rvc-dev
parents b7050a36 fa7d46b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -696,7 +696,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_BOUND_FOREGROUND_SERVICE;
        return procState >= PROCESS_STATE_TRANSIENT_BACKGROUND;
    }

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