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

Commit 70f30ec1 authored by Felipe Leme's avatar Felipe Leme
Browse files

Print an error message when set metered-network is called with invalid

SSID.

BUG: 31781595
BUG: 30223683

Test: manually called it
Change-Id: I29bb9cc5a3302d367b93d81abcff408c5cc035f3
parent 162d221b
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 {