Merge "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"
This commit is contained in:
@@ -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? */
|
||||
|
||||
Reference in New Issue
Block a user