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

Commit 17530508 authored by Xia Wang's avatar Xia Wang Committed by Android Git Automerger
Browse files

am cf7d2d50: am 3716ea04: am 06906796: If the network SSID is a string, it...

am cf7d2d50: am 3716ea04: am 06906796: If the network SSID is a string, it should be enclosed in double quotation marks.
parents 2ee95ad6 cf7d2d50
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ public class ConnectivityManagerTestActivity extends Activity {
            if (sr.SSID.equals(knownSSID)) {
                Log.v(LOG_TAG, "found " + knownSSID + " in the scan result list");
                WifiConfiguration config = new WifiConfiguration();
                config.SSID = sr.SSID;
                config.SSID = convertToQuotedString(sr.SSID);
                config.allowedKeyManagement.set(KeyMgmt.NONE);
                int networkId = mWifiManager.addNetwork(config);
                // Connect to network by disabling others.
@@ -387,6 +387,10 @@ public class ConnectivityManagerTestActivity extends Activity {
        context.sendBroadcast(intent);
    }

    protected static String convertToQuotedString(String string) {
        return "\"" + string + "\"";
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();