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

Commit 6cf5e2ff authored by Rakesh Pallerla's avatar Rakesh Pallerla Committed by Gerrit - the friendly Code Review server
Browse files

Modify getLteOnCdmaModeStatic method as slotId agnostic.

Modify getLteOnCdmaModeStatic method to be agnostic of SlotId,
and return value defined in property statically.

Change-Id: I2eb32800e4777bad5c4fb5a91bb1a56d379705f1
CRs-Fixed: 813632
parent feba6ba3
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1016,10 +1016,6 @@ public class TelephonyManager {
    private static final String sLteOnCdmaProductType =
        SystemProperties.get(TelephonyProperties.PROPERTY_LTE_ON_CDMA_PRODUCT_TYPE, "");

    /** @hide */
     public static int getLteOnCdmaModeStatic() {
        return getLteOnCdmaModeStatic(getDefaultSim());
    }

    /**
     * Return if the current radio is LTE on CDMA. This
@@ -1031,12 +1027,12 @@ public class TelephonyManager {
     *
     * @hide
     */
    public static int getLteOnCdmaModeStatic(int slotId) {
    public static int getLteOnCdmaModeStatic() {
        int retVal;
        int curVal;
        String productType = "";

        curVal = getTelephonyProperty(TelephonyProperties.PROPERTY_LTE_ON_CDMA_DEVICE, slotId,
        curVal = SystemProperties.getInt(TelephonyProperties.PROPERTY_LTE_ON_CDMA_DEVICE,
                PhoneConstants.LTE_ON_CDMA_UNKNOWN);
        retVal = curVal;
        if (retVal == PhoneConstants.LTE_ON_CDMA_UNKNOWN) {