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

Commit bd087117 authored by Hu Wang's avatar Hu Wang Committed by Steve Kondik
Browse files

WiFi: Fix data2Wifi caused not enableAllNetworks.

Use shouldAutoConnect() to judge if Wi-Fi networks have to get
enabled.
Ensure that the Wi-Fi networks are enabled in all the conditions
where the requirement for Auto Connection meet.
Thus, if there is no active Mobile Network, enable all the
Wi-Fi networks, though isDataToWifiAutoConn policy is not TRUE.

Change-Id: I082d0797347593ea6f878181908fea4bb64ca158
CRs-Fixed: 683197
parent f2b5d650
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ class WifiConfigStore {
     */
    void enableAllNetworks() {
        if (mContext.getResources().getBoolean(R.bool.wifi_autocon)
                && !(isWifiAuto() && isDataToWifiAuto())) {
                && !shouldAutoConnect()) {
            return;
        }