diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-03-19 17:26:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-19 17:26:40 +0000 |
commit | fc0d674e7a0031609bff502fd99350bcf696b877 (patch) | |
tree | b00fbe241a4670a8167c956516f7c5dcb3ef5953 | |
parent | ad56c0af020229718dda9528b0c6b0fecf57b85f (diff) | |
parent | b5f4a2c86ea6ca3abe91362afc3d3aaa6ad0721f (diff) | |
download | packages_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.java | 2 |
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()); |