Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27d74fa2 authored by Maurice Lam's avatar Maurice Lam Committed by Android (Google) Code Review
Browse files

Merge "[WifiSetup] Update connection state for auto-finish" into lmp-dev

parents 09a11d5b 610fdf33
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -87,9 +87,10 @@ public class WifiSetupActivity extends WifiPickerActivity
    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            NetworkInfo info = (NetworkInfo) intent.getParcelableExtra(
                    WifiManager.EXTRA_NETWORK_INFO);
            refreshConnectionState(info.isConnected());
            // Refresh the connection state with the latest connection info. Use the connection info
            // from ConnectivityManager instead of the one attached in the intent to make sure
            // we have the most up-to-date connection state. b/17511772
            refreshConnectionState();
        }
    };