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

Commit f0c009b9 authored by Shareef Ali's avatar Shareef Ali Committed by Gerrit Code Review
Browse files

Merge "PhoneProxy: Restore previous updatePhoneObject logic." into cm-10.2

parents 7657d9fa 89437935
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -54,8 +54,6 @@ public class PhoneProxy extends Handler implements Phone {
    private boolean mResetModemOnRadioTechnologyChange = false;

    private int mRilVersion;
    private boolean mRilV7NeedsCDMALTEPhone = SystemProperties.getBoolean(
                    "telephony.rilV7NeedCDMALTEPhone", false);

    private static final int EVENT_VOICE_RADIO_TECH_CHANGED = 1;
    private static final int EVENT_RADIO_ON = 2;
@@ -143,10 +141,9 @@ public class PhoneProxy extends Handler implements Phone {
    private void updatePhoneObject(int newVoiceRadioTech) {

        if (mActivePhone != null) {
            if((mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) ||
                mRilV7NeedsCDMALTEPhone) {
            if(mRilVersion >= 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) {
                /*
                 * On v6 RIL, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone
                 * On v6 or greater RIL, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone
                 * 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.