Loading wifi/java/android/net/wifi/WifiConfigStore.java +6 −1 Original line number Diff line number Diff line Loading @@ -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() { Loading Loading
wifi/java/android/net/wifi/WifiConfigStore.java +6 −1 Original line number Diff line number Diff line Loading @@ -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() { Loading