summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2010-03-22 12:23:30 -0700
committerIrfan Sheriff <isheriff@google.com>2010-03-22 15:33:44 -0700
commit9775dc9515e3e4bc2626544395041c3346d1fdc9 (patch)
treed4f23267f79866d76b22d5a891423ad1e78a98d7 /src
parent3e5cfe8f0ac32b932fe3b93cc784cd9b849dc118 (diff)
downloadpackages_apps_Settings-9775dc9515e3e4bc2626544395041c3346d1fdc9.zip
packages_apps_Settings-9775dc9515e3e4bc2626544395041c3346d1fdc9.tar.gz
packages_apps_Settings-9775dc9515e3e4bc2626544395041c3346d1fdc9.tar.bz2
Add password hint and fix settings crash
Bug: 2534348 Bug: 2533980 Change-Id: I2f220ac9c710869d3f93a56557afb33478c3b323
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/wifi/WifiApSettings.java28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/com/android/settings/wifi/WifiApSettings.java b/src/com/android/settings/wifi/WifiApSettings.java
index ec1016e..bca4835 100644
--- a/src/com/android/settings/wifi/WifiApSettings.java
+++ b/src/com/android/settings/wifi/WifiApSettings.java
@@ -114,19 +114,21 @@ public class WifiApSettings extends PreferenceActivity
public void onClick(DialogInterface dialogInterface, int button) {
- mWifiConfig = mDialog.getConfig();
-
- if (button == DialogInterface.BUTTON_POSITIVE && mWifiConfig != null) {
- mWifiManager.setWifiApEnabled(mWifiConfig, true);
- mCreateNetwork.setSummary(String.format(getString(CONFIG_SUBTEXT),
- mWifiConfig.SSID,
- mWifiConfig.allowedKeyManagement.get(KeyMgmt.WPA_PSK) ?
- mSecurityType[WPA_INDEX] : mSecurityType[OPEN_INDEX]));
- /**
- * There is no tether notification on changing AP
- * configuration. Update status with new config.
- */
- mWifiApEnabler.updateConfigSummary(mWifiConfig);
+ if (button == DialogInterface.BUTTON_POSITIVE) {
+ mWifiConfig = mDialog.getConfig();
+ if(mWifiConfig != null) {
+ mWifiManager.setWifiApEnabled(mWifiConfig, true);
+ mCreateNetwork.setSummary(String.format(getString(CONFIG_SUBTEXT),
+ mWifiConfig.SSID,
+ mWifiConfig.allowedKeyManagement.get(KeyMgmt.WPA_PSK) ?
+ mSecurityType[WPA_INDEX] : mSecurityType[OPEN_INDEX]));
+ /**
+ * There is no tether notification on changing AP
+ * configuration. Update status with new config.
+ */
+ mWifiApEnabler.updateConfigSummary(mWifiConfig);
+
+ }
}
}
}