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

Commit a2c476b5 authored by kaiyiz's avatar kaiyiz
Browse files

WLAN: Align the Wifi auto connect type value with frameworks

WLAN reconnect to the previous AP when turn off and on wlan.

Align the Wifi auto connect type value with frameworks.

Change-Id: Iccf4c4f2067af71833c6ca73b5f5c801aed74ca2
CRs-Fixed: 750963
parent d0bfe570
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment
    private static final String KEY_AUTO_CONNECT_ENABLE = "auto_connect_type";
    private static final String WIFI_AUTO_CONNECT_TYPE = "wifi_auto_connect_type";
    private static final int AUTO_CONNECT_ENABLED = 0;
    private static final int AUTO_CONNECT_FATAL_VALUE = -1;
    private static final int AUTO_CONNECT_DISABLE = 1;
    private static final int AUTO_CONNECT_DEFAULT_VALUE = AUTO_CONNECT_ENABLED;

    private static final String KEY_CELLULAR_TO_WLAN = "cellular_to_wlan";
@@ -351,7 +351,7 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment
                    WIFI_AUTO_CONNECT_TYPE, AUTO_CONNECT_ENABLED);
        } else {
            Settings.System.putInt(getActivity().getContentResolver(),
                    WIFI_AUTO_CONNECT_TYPE, AUTO_CONNECT_FATAL_VALUE);
                    WIFI_AUTO_CONNECT_TYPE, AUTO_CONNECT_DISABLE);
        }
    }