diff options
author | Xia Wang <xiaw@google.com> | 2010-05-20 10:58:18 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-20 10:58:18 -0700 |
commit | cf7d2d50a4b99e6729c02cc2257bd6bd62814c6a (patch) | |
tree | 94efc0fb4eaf3bd695d928dbd273173028f0f620 /core | |
parent | 5badcabadbd5874ec42ca14a4e4e66bd3f2b65c2 (diff) | |
parent | 3716ea04d9fd59ff95bacdf6efac4ab5583e13fc (diff) | |
download | frameworks_base-cf7d2d50a4b99e6729c02cc2257bd6bd62814c6a.zip frameworks_base-cf7d2d50a4b99e6729c02cc2257bd6bd62814c6a.tar.gz frameworks_base-cf7d2d50a4b99e6729c02cc2257bd6bd62814c6a.tar.bz2 |
am 3716ea04: am 06906796: If the network SSID is a string, it should be enclosed in double quotation marks.
Merge commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc' into kraken
* commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc':
If the network SSID is a string, it should be enclosed in double quotation marks.
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java b/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java index 6475655..7392ad4 100644 --- a/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java +++ b/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java @@ -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(); |