Fix network disable on connect
If we dont have an updated access point list when we are re-enabling networks after connecting, we could end up keeping some networks disabled. This could happen if there is no event that triggers an access point before enabling networks Update the current access point list right before enabling all networks. Bug: 2567770 Change-Id: Ieb1ac8147d4acb05a6d13c44396653f0af94643d
This commit is contained in:
@@ -445,6 +445,7 @@ public class WifiSettings extends PreferenceActivity implements DialogInterface.
|
|||||||
|
|
||||||
if (mResetNetworks && (state == DetailedState.CONNECTED ||
|
if (mResetNetworks && (state == DetailedState.CONNECTED ||
|
||||||
state == DetailedState.DISCONNECTED || state == DetailedState.FAILED)) {
|
state == DetailedState.DISCONNECTED || state == DetailedState.FAILED)) {
|
||||||
|
updateAccessPoints();
|
||||||
enableNetworks();
|
enableNetworks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user