Merge "Only check exempted package list if standby is enabled." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
26bfc5419c
@@ -1120,7 +1120,8 @@ public class AppStateTracker {
|
||||
return false;
|
||||
}
|
||||
final int userId = UserHandle.getUserId(uid);
|
||||
if (mExemptedPackages.contains(userId, packageName)) {
|
||||
if (mAppStandbyInternal.isAppIdleEnabled() && !mAppStandbyInternal.isInParole()
|
||||
&& mExemptedPackages.contains(userId, packageName)) {
|
||||
return false;
|
||||
}
|
||||
return mForceAllAppsStandby;
|
||||
|
||||
Reference in New Issue
Block a user