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

Commit 829a924d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Validate SSID only on the Submit button" into main

parents 9c8cb4d5 9f943bad
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -206,6 +206,9 @@ public class AddNetworkFragment extends InstrumentedFragment implements WifiConf

    @VisibleForTesting
    void handleSubmitAction() {
        if (!mUIController.canFinish()) {
            return;
        }
        successfullyFinish(mUIController.getConfig());
    }

@@ -234,9 +237,6 @@ public class AddNetworkFragment extends InstrumentedFragment implements WifiConf

            activity.getSystemService(WifiManager.class).save(config, saveListener);
        } else {
            if (!mUIController.canFinish()) {
                return;
            }
            Intent intent = new Intent();
            intent.putExtra(WIFI_CONFIG_KEY, config);
            activity.setResult(Activity.RESULT_OK, intent);