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

Commit 65a0e43a 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 am: 8871bd5b

parents 7f42d27c 8871bd5b
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);
                }
            });