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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user