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

Commit 44f9579c authored by Muhammed Siju's avatar Muhammed Siju
Browse files

Fix call disconnect issue in LTE->1x CSFB.

When registered in LTE, phone object is switched to GSM.
Attempting a CSFB MO call will cause the phone object to be
switched to CDMA resulting in local hangup of the dialled call.
To fix this, do not switch phone object to GSM when camped to LTE
in CDMA-LTE mode.
If there is a real need to switch to GSM it is done via
RIL_UNSOL_VOICE_RADIO_TECH_CHANGED.

Change-Id: Ibbde3d284fa823cc74e41697b5ef41ead6c33093
CRs-Fixed: 578578
parent b407596c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -576,6 +576,18 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
        }
    }

    @Override
    protected void updatePhoneObject() {
        int voiceRat = mSS.getRilVoiceRadioTechnology();
        // For CDMA-LTE phone don't update phone to LTE.
        // If there is a  real need to switch to LTE, then it will be done via
        // RIL_UNSOL_VOICE_RADIO_TECH_CHANGED from RIL.
        if (voiceRat == ServiceState.RIL_RADIO_TECHNOLOGY_LTE) {
            voiceRat = ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT;
        }
        mPhoneBase.updatePhoneObject(voiceRat);
    }

    @Override
    protected void log(String s) {
        Rlog.d(LOG_TAG, "[CdmaLteSST] " + s);