summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanket Padawe <sanketpadawe@google.com>2015-03-19 17:26:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-19 17:26:40 +0000
commitfc0d674e7a0031609bff502fd99350bcf696b877 (patch)
treeb00fbe241a4670a8167c956516f7c5dcb3ef5953
parentad56c0af020229718dda9528b0c6b0fecf57b85f (diff)
parentb5f4a2c86ea6ca3abe91362afc3d3aaa6ad0721f (diff)
downloadpackages_apps_Settings-fc0d674e7a0031609bff502fd99350bcf696b877.tar.gz
packages_apps_Settings-fc0d674e7a0031609bff502fd99350bcf696b877.tar.bz2
packages_apps_Settings-fc0d674e7a0031609bff502fd99350bcf696b877.zip
Merge "Fix crash while trying to connect to network in WiFi Settings."
-rw-r--r--src/com/android/settings/wifi/WifiSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index a4ecf0e93..5c6630931 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -447,7 +447,7 @@ public class WifiSettings extends RestrictedSettingsFragment
case MENU_ID_CONNECT: {
if (mSelectedAccessPoint.isSaved()) {
connect(mSelectedAccessPoint.getConfig());
- } else if (mSelectedAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) {
+ } else if (mSelectedAccessPoint.getSecurity() == AccessPoint.SECURITY_NONE) {
/** Bypass dialog for unsecured networks */
mSelectedAccessPoint.generateOpenNetworkConfig();
connect(mSelectedAccessPoint.getConfig());