• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisionf3373c99493878f4689a9d4865323c18a2065c3b (tree)
Time2010-05-27 04:53:24
AuthorIrfan Sheriff <isheriff@goog...>
CommiterIrfan Sheriff

Log Message

No quotes for password

Putting quotes for password in soft AP is not useful.
It simplifies processing in framework.

Bug: 2708960
Change-Id: If44aeb336732aa8089d3e401b546ebf9b3cbd25a

Change Summary

Incremental Difference

--- a/src/com/android/settings/wifi/WifiApDialog.java
+++ b/src/com/android/settings/wifi/WifiApDialog.java
@@ -78,7 +78,7 @@ class WifiApDialog extends AlertDialog implements View.OnClickListener,
7878 * This is not the case on the client side. We need to
7979 * make things consistent and clean it up
8080 */
81- config.SSID = mSsid.getText().toString().replaceAll("\"","");
81+ config.SSID = mSsid.getText().toString();
8282
8383 switch (mSecurityType) {
8484 case AccessPoint.SECURITY_NONE:
@@ -90,11 +90,7 @@ class WifiApDialog extends AlertDialog implements View.OnClickListener,
9090 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN);
9191 if (mPassword.length() != 0) {
9292 String password = mPassword.getText().toString();
93- if (password.matches("[0-9A-Fa-f]{64}")) {
94- config.preSharedKey = password;
95- } else {
96- config.preSharedKey = '"' + password + '"';
97- }
93+ config.preSharedKey = password;
9894 }
9995 return config;
10096 }
@@ -128,9 +124,6 @@ class WifiApDialog extends AlertDialog implements View.OnClickListener,
128124 break;
129125 case AccessPoint.SECURITY_PSK:
130126 String str = mWifiConfig.preSharedKey;
131- if (!str.matches("[0-9A-Fa-f]{64}")) {
132- str = str.substring(1,str.length()-1);
133- }
134127 mPassword.setText(str);
135128 mSecurity.setSelection(WPA_INDEX);
136129 break;