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

Commit 2770c8d5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Exclude IWLAN from the checks""

parents 9bc2961f 299d90d4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1659,10 +1659,7 @@ public class DataConnection extends StateMachine {
        TelephonyDisplayInfo displayInfo = mPhone.getDisplayInfoController()
                .getTelephonyDisplayInfo();
        int overrideNetworkType = displayInfo.getOverrideNetworkType();
        NetworkRegistrationInfo nri =  mPhone.getServiceState().getNetworkRegistrationInfo(
                NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
        int networkType = nri == null ? TelephonyManager.NETWORK_TYPE_UNKNOWN
                : nri.getAccessNetworkTechnology();
        int networkType = mPhone.getServiceState().getDataNetworkType();
        return networkType == TelephonyManager.NETWORK_TYPE_NR
                || ((networkType == TelephonyManager.NETWORK_TYPE_LTE
                || networkType == TelephonyManager.NETWORK_TYPE_LTE_CA)