Merge "resolve merge conflicts of b9d266f to nyc-dev-plus-aosp" into nyc-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
e61d3ff3d1
@@ -2747,7 +2747,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
final String[] packages = mContext.getPackageManager().getPackagesForUid(uid);
|
||||
final int userId = UserHandle.getUserId(uid);
|
||||
|
||||
if (!ArrayUtils.isEmpty(packages)) {
|
||||
if (packages != null) {
|
||||
for (String packageName : packages) {
|
||||
if (!mUsageStats.isAppIdle(packageName, uid, userId)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user