diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index 97a74d767a6..ceacefe90ce 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -346,6 +346,10 @@ public class WifiSettings extends RestrictedSettingsFragment if (intent.hasExtra(EXTRA_START_CONNECT_SSID)) { mOpenSsid = intent.getStringExtra(EXTRA_START_CONNECT_SSID); } + + // After rebooting the device, the Wi-Fi state will not be called back in the airplane + // mode, need to call onWifiStateChanged() to update the initial state of the UI. + onWifiStateChanged(); } @Override