Fix crash when accessibility is on

Bug: 6600699
Change-Id: I9eb8b9871d1368bd7508873951d5719e1f2ba826
This commit is contained in:
Irfan Sheriff
2012-06-04 10:21:11 -07:00
parent 96e2a62a46
commit 15a279231f

View File

@@ -743,7 +743,9 @@ public class WifiConfigController implements TextWatcher,
InputType.TYPE_CLASS_TEXT | (((CheckBox) view).isChecked() ?
InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD :
InputType.TYPE_TEXT_VARIATION_PASSWORD));
((EditText)mPasswordView).setSelection(pos);
if (pos >= 0) {
((EditText)mPasswordView).setSelection(pos);
}
} else if (view.getId() == R.id.wifi_advanced_togglebox) {
if (((CheckBox) view).isChecked()) {
mView.findViewById(R.id.wifi_advanced_fields).setVisibility(View.VISIBLE);