Fixed wrong loop variable (AKA: I, Y U NO J?)

BUG: 27366993
BUG: 28451218
Change-Id: I8455ada4194e7fc44ae7448e5cd763d22065fd2e
This commit is contained in:
Felipe Leme
2016-04-28 15:37:20 -07:00
parent ce2dae9c16
commit 6173185432

View File

@@ -465,7 +465,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
continue;
}
for (int j = 0; j < numberUsers; j++) {
final UserInfo user = users.get(i);
final UserInfo user = users.get(j);
final int uid = UserHandle.getUid(user.id, app.uid);
mDefaultRestrictBackgroundWhitelistUids.append(uid, true);
if (LOGD) Slog.d(TAG, "revoked whistelist status for uid " + uid + ": "