Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98cbe497 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android Git Automerger
Browse files

am c2c611c4: am 13ad04e7: am 3df17a6d: am f68e0236: Merge "Allow Settings to...

am c2c611c4: am 13ad04e7: am 3df17a6d: am f68e0236: Merge "Allow Settings to set background data restrict on secondary users." into mnc-dev

* commit 'c2c611c4':
  Allow Settings to set background data restrict on secondary users.
parents cd056631 c2c611c4
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1520,10 +1520,15 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
        }

        synchronized (mRulesLock) {
            final long token = Binder.clearCallingIdentity();
            try {
                final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
                if (oldPolicy != policy) {
                    setUidPolicyUncheckedLocked(uid, policy, true);
                }
            } finally {
                Binder.restoreCallingIdentity(token);
            }
        }
    }