Fix button visibility on connect

Bug: 5750846
Change-Id: I1f31308a21f7f6876f12eb4f1ab45ecd1bc74092
This commit is contained in:
Irfan Sheriff
2011-12-13 11:55:15 -08:00
parent 71af03eb0b
commit 0c0bd827a1
2 changed files with 4 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ public class WifiConfigController implements TextWatcher,
} }
/* show submit button if password, ip and proxy settings are valid */ /* show submit button if password, ip and proxy settings are valid */
private void enableSubmitIfAppropriate() { void enableSubmitIfAppropriate() {
Button submit = mConfigUi.getSubmitButton(); Button submit = mConfigUi.getSubmitButton();
if (submit == null) return; if (submit == null) return;
boolean enabled = false; boolean enabled = false;

View File

@@ -56,6 +56,9 @@ class WifiDialog extends AlertDialog implements WifiConfigUiBase {
setInverseBackgroundForced(true); setInverseBackgroundForced(true);
mController = new WifiConfigController(this, mView, mAccessPoint, mEdit); mController = new WifiConfigController(this, mView, mAccessPoint, mEdit);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
/* During creation, the submit button can be unavailable to determine
* visibility. Right after creation, update button visibility */
mController.enableSubmitIfAppropriate();
} }
@Override @Override