From 9b7edb16d1309dae9b71770d4f44275646b144e4 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Fri, 17 Sep 2010 14:11:30 -0700 Subject: [PATCH] fix add wifi network dialog On changing security type with the spinner, the password/eap fields should change accordingly. Due to a bug with checking of the spinner, this was not happening. fix it. Bug: 1654928 Change-Id: I9bb174448694671206293ccdc380a9aad14a3f12 --- src/com/android/settings/wifi/WifiConfigController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java index a09bfa30d66..d9fb239ea16 100644 --- a/src/com/android/settings/wifi/WifiConfigController.java +++ b/src/com/android/settings/wifi/WifiConfigController.java @@ -447,7 +447,7 @@ public class WifiConfigController implements TextWatcher, @Override public void onItemSelected(AdapterView parent, View view, int position, long id) { - if (view == mSecuritySpinner) { + if (parent == mSecuritySpinner) { mAccessPointSecurity = position; showSecurityFields(); enableSubmitIfAppropriate();