Merge "Fix a minor typo."
This commit is contained in:
@@ -4322,7 +4322,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
|||||||
// Flip state because app was explicitly added or removed to denylist.
|
// Flip state because app was explicitly added or removed to denylist.
|
||||||
setMeteredNetworkDenylist(uid, (isDenylisted || isRestrictedByAdmin));
|
setMeteredNetworkDenylist(uid, (isDenylisted || isRestrictedByAdmin));
|
||||||
if (hasRule(oldRule, RULE_REJECT_METERED) && isAllowlisted) {
|
if (hasRule(oldRule, RULE_REJECT_METERED) && isAllowlisted) {
|
||||||
// Since dneylist prevails over allowlist, we need to handle the special case
|
// Since denylist prevails over allowlist, we need to handle the special case
|
||||||
// where app is allowlisted and denylisted at the same time (although such
|
// where app is allowlisted and denylisted at the same time (although such
|
||||||
// scenario should be blocked by the UI), then denylist is removed.
|
// scenario should be blocked by the UI), then denylist is removed.
|
||||||
setMeteredNetworkAllowlist(uid, isAllowlisted);
|
setMeteredNetworkAllowlist(uid, isAllowlisted);
|
||||||
|
|||||||
Reference in New Issue
Block a user