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
This commit is contained in:
Irfan Sheriff
2010-09-17 14:11:30 -07:00
parent cc2c684c71
commit 9b7edb16d1

View File

@@ -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();