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

Commit 2a2042a1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Print an error message when set metered-network is called with invalid SSID."

parents 64f83775 70f30ec1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -333,9 +333,11 @@ class NetworkPolicyManagerShellCommand extends ShellCommand {
                System.arraycopy(policies, 0, newPolicies, 0, policies.length);
                newPolicies[newPolicies.length - 1] = policy;
                mInterface.setNetworkPolicies(newPolicies);
                return 0;
            }
        }
        return 0;
        pw.print("Error: didn't find network with SSID "); pw.println(id);
        return -1;
    }

    private List<NetworkPolicy> getWifiPolicies() throws RemoteException {