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

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

Merge "Modify getLteOnCdmaModeStatic method as slotId agnostic."

parents d39dd374 96831aad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ public class PhoneFactory {
    // TODO: Fix when we "properly" have TelephonyDevController/SubscriptionController ..
    public static int calculatePreferredNetworkType(Context context, int phoneId) {
        int preferredNetworkType = RILConstants.PREFERRED_NETWORK_MODE;
        if (TelephonyManager.getLteOnCdmaModeStatic(phoneId) == PhoneConstants.LTE_ON_CDMA_TRUE) {
        if (TelephonyManager.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) {
            preferredNetworkType = Phone.NT_MODE_GLOBAL;
        }
        int networkType = preferredNetworkType;