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

Commit f3b29ddf authored by Jef Oliver's avatar Jef Oliver Committed by Gerrit Code Review
Browse files

Merge "PhoneProxy: Update IccCardProxy only when cdma voice tech changes." into cm-10.2

parents d9089001 65b208b1
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -147,15 +147,24 @@ public class PhoneProxy extends Handler implements Phone {
                mRilV7NeedsCDMALTEPhone) {
                /*
                 * On v6 RIL, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone
                 * irrespective of the voice radio tech reported.
                 * irrespective of the voice radio tech reported. Handle instance
                 * where device may be global phone, reporting as cdma device. Don't update
                 * voice tech in that scenario.
                 */
                if (mActivePhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
                if ((ServiceState.isCdma(newVoiceRadioTech) &&
                        mActivePhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA)) {
                    logd("LTE ON CDMA property is set. Use CDMA Phone" +
                            " newVoiceRadioTech = " + newVoiceRadioTech +
                            " Active Phone = " + mActivePhone.getPhoneName());
                    // IccCardProxy needs to be kept in sync
                    mIccCardProxy.setVoiceRadioTech(newVoiceRadioTech);
                    return;
                } else if ((ServiceState.isGsm(newVoiceRadioTech) &&
                        mActivePhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA)) {
                    logd("LTE ON CDMA property is set. Already CDMA Phone" +
                            " newVoiceRadioTech = " + newVoiceRadioTech +
                            " Active Phone = " + mActivePhone.getPhoneName());
                    return;
                } else {
                    logd("LTE ON CDMA property is set. Switch to CDMALTEPhone" +
                            " newVoiceRadioTech = " + newVoiceRadioTech +