Merge "Revert "Change isProcStateBackground() cutoff to PROCESS_STATE_BOUND_FOREGROUND_SERVICE"" into rvc-dev am: 3b2dccfcc3
Change-Id: Ic379de7fc158176d27161a510d31341fe9a0df22
This commit is contained in:
@@ -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? */
|
||||
|
||||
Reference in New Issue
Block a user