am 27d74fa2
: Merge "[WifiSetup] Update connection state for auto-finish" into lmp-dev
* commit '27d74fa288c195aa5e1190da5599965472f1aded': [WifiSetup] Update connection state for auto-finish
This commit is contained in:
@@ -87,9 +87,10 @@ public class WifiSetupActivity extends WifiPickerActivity
|
|||||||
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
NetworkInfo info = (NetworkInfo) intent.getParcelableExtra(
|
// Refresh the connection state with the latest connection info. Use the connection info
|
||||||
WifiManager.EXTRA_NETWORK_INFO);
|
// from ConnectivityManager instead of the one attached in the intent to make sure
|
||||||
refreshConnectionState(info.isConnected());
|
// we have the most up-to-date connection state. b/17511772
|
||||||
|
refreshConnectionState();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user