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

Commit d40ea0a9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not disable toggle when Wi-Fi is enabling and disabling." into oc-dev

parents ef342736 a82c048e
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);