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

Commit 40ee06d7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "WIFI: FIX wifi not auto-connect issue."

parents f596fc4b 796dc2e9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -245,7 +245,12 @@ class WifiConfigStore {
    boolean isWifiAutoConn() {
        // If no active network(info == null) and wifi connection type is auto
        // connect, auto connect to wifi.
        return isWifiAuto() && (existActiveNetwork() == -1);
        // If the active network type is wifi, wifi connection type is auto
        // auto connect to wifi. This allows wifi auto-reconnect when
        // wifi disconnected for unexpected reason.
        return isWifiAuto() && ((existActiveNetwork() == -1)
                                  || (existActiveNetwork()
                                       == ConnectivityManager.TYPE_WIFI));
    }

    boolean isDataToWifiAutoConn() {