Merge "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"

This commit is contained in:
Hui Yu
2020-02-18 23:28:36 +00:00
committed by Android (Google) Code Review

View File

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