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

Commit 99c7aa38 authored by Jack Yu's avatar Jack Yu
Browse files

Exclude IWLAN from the checks

We should only use the cellular data RAT even
when the device is on Wifi.

Bug: 176119724
Test: Manual
Change-Id: I0f767badef7a78358f2a542627971f7a850ac28f
parent 4cd8ca22
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1659,7 +1659,10 @@ public class DataConnection extends StateMachine {
        TelephonyDisplayInfo displayInfo = mPhone.getDisplayInfoController()
                .getTelephonyDisplayInfo();
        int overrideNetworkType = displayInfo.getOverrideNetworkType();
        int networkType = mPhone.getServiceState().getDataNetworkType();
        NetworkRegistrationInfo nri =  mPhone.getServiceState().getNetworkRegistrationInfo(
                NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
        int networkType = nri == null ? TelephonyManager.NETWORK_TYPE_UNKNOWN
                : nri.getAccessNetworkTechnology();
        return networkType == TelephonyManager.NETWORK_TYPE_NR
                || ((networkType == TelephonyManager.NETWORK_TYPE_LTE
                || networkType == TelephonyManager.NETWORK_TYPE_LTE_CA)