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

Commit 774a37b9 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Fix crash in WiFi Settings test code.

Bug: 23264452
Change-Id: I285512fe4c0dbc842e041b551819d650f5cf9bbe
parent 6d07779c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -109,7 +109,13 @@ Preference.OnPreferenceClickListener {
            alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int whichButton) {
                    Editable value = input.getText();
                    try {
                        netid = Integer.parseInt(value.toString());
                    } catch (NumberFormatException e) {
                        // Invalid netid
                        e.printStackTrace();
                        return;
                    }
                    mWifiManager.disableNetwork(netid);
                    }
                    });