Merge "Fix Wi-Fi tips disappeared issue in airplane mode" into sc-dev am: 3b179a8930

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14173740

Change-Id: Ib31c4fa8e3b804ca74972eb15dfc68fa96fd4bd9
This commit is contained in:
TreeHugger Robot
2021-04-16 03:57:44 +00:00
committed by Automerger Merge Worker

View File

@@ -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