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

Commit 8983765b authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Use deduceRestrictedCapability, removeCapability, and...

Merge "Use deduceRestrictedCapability, removeCapability,  and NET_CAPABILITY_NOT_RESTRICTED instead of  maybeMarkCapabilitiesRestricted for Mainline" am: 081cf7b1

Change-Id: I94cd499c2afea57e9ea8f8630aa2a4df7e8d7839
parents 60e0540a 081cf7b1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1301,7 +1301,9 @@ public class DataConnection extends StateMachine {
                result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
            }

            result.maybeMarkCapabilitiesRestricted();
            if (result.deduceRestrictedCapability()) {
                result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
            }
        }

        if (mRestrictedNetworkOverride) {