Do not disable toggle when Wi-Fi is enabling and disabling.

The toggle disabling of Wi-Fi in its ENABLING and DISABLING states
are not in sync with the loading of access points, and so removed
the disabling entirely.

Bug:34287227
Test: manual inspection.
Change-Id: Ibcb401eaaa34be79e1e73a947b2ea845cca79996
This commit is contained in:
Stephen Chen
2017-03-28 17:20:41 -07:00
parent 32924e2f58
commit a82c048e12

View File

@@ -134,14 +134,12 @@ public class WifiEnabler implements SwitchWidgetController.OnSwitchChangeListene
switch (state) {
case WifiManager.WIFI_STATE_ENABLING:
mSwitchWidget.setEnabled(false);
break;
case WifiManager.WIFI_STATE_ENABLED:
setSwitchBarChecked(true);
mSwitchWidget.setEnabled(true);
break;
case WifiManager.WIFI_STATE_DISABLING:
mSwitchWidget.setEnabled(false);
break;
case WifiManager.WIFI_STATE_DISABLED:
setSwitchBarChecked(false);