Merge "Display connect button in the wifi connection menu"

This commit is contained in:
Paul Stewart
2016-05-27 14:50:10 +00:00
committed by Gerrit Code Review

View File

@@ -254,7 +254,7 @@ public class WifiConfigController implements TextWatcher,
final DetailedState state = mAccessPoint.getDetailedState();
final String signalLevel = getSignalString();
if (state == null && signalLevel != null) {
if ((state == null || state == DetailedState.DISCONNECTED) && signalLevel != null) {
mConfigUi.setSubmitButton(res.getString(R.string.wifi_connect));
} else {
if (state != null) {