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

Commit 8871bd5b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix force close in WiFi API test code" into main am: 4f52f40c

parents c5dc26d4 4f52f40c
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -164,7 +164,13 @@ public class WifiAPITest extends SettingsPreferenceFragment implements
            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.enableNetwork(netid, false);
                }
            });