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

Commit a82c048e authored by Stephen Chen's avatar Stephen Chen
Browse files

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
parent 32924e2f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);