Fix button visibility on connect
Bug: 5750846 Change-Id: I1f31308a21f7f6876f12eb4f1ab45ecd1bc74092
This commit is contained in:
@@ -271,7 +271,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
}
|
||||
|
||||
/* show submit button if password, ip and proxy settings are valid */
|
||||
private void enableSubmitIfAppropriate() {
|
||||
void enableSubmitIfAppropriate() {
|
||||
Button submit = mConfigUi.getSubmitButton();
|
||||
if (submit == null) return;
|
||||
boolean enabled = false;
|
||||
|
@@ -56,6 +56,9 @@ class WifiDialog extends AlertDialog implements WifiConfigUiBase {
|
||||
setInverseBackgroundForced(true);
|
||||
mController = new WifiConfigController(this, mView, mAccessPoint, mEdit);
|
||||
super.onCreate(savedInstanceState);
|
||||
/* During creation, the submit button can be unavailable to determine
|
||||
* visibility. Right after creation, update button visibility */
|
||||
mController.enableSubmitIfAppropriate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user