Display connect button in the wifi connection menu
When you quickly try to reconnect after forgeting the AP, the connection is in DISCONNECTED state and we may still display the connect button Change-Id: I755a259fdf68fab470d7f69aa461f5bcedddfd5b Signed-off-by: Damien Vagner <damienx.vagner@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
This commit is contained in:
committed by
Zhiquan Liu
parent
6979c8bbe3
commit
41a57e23a3
@@ -254,7 +254,7 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
final DetailedState state = mAccessPoint.getDetailedState();
|
final DetailedState state = mAccessPoint.getDetailedState();
|
||||||
final String signalLevel = getSignalString();
|
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));
|
mConfigUi.setSubmitButton(res.getString(R.string.wifi_connect));
|
||||||
} else {
|
} else {
|
||||||
if (state != null) {
|
if (state != null) {
|
||||||
|
Reference in New Issue
Block a user