Merge "Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"" into rvc-dev

This commit is contained in:
Hui Yu
2020-03-02 19:46:25 +00:00
committed by Android (Google) Code Review

View File

@@ -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? */