diff options
author | Shareef Ali <shareefalis@cyanogenmod.org> | 2013-07-11 11:32:53 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-07-11 11:32:53 -0700 |
commit | 47712d0494460cb14a710728aeafefeb62edcc38 (patch) | |
tree | 2e3df29824fc1525c36ed94be76eb2540c4db76c /src | |
parent | 5e0983ba3e96083da094d9706beadacce6b4e9c9 (diff) | |
download | frameworks_opt_telephony-47712d0494460cb14a710728aeafefeb62edcc38.zip frameworks_opt_telephony-47712d0494460cb14a710728aeafefeb62edcc38.tar.gz frameworks_opt_telephony-47712d0494460cb14a710728aeafefeb62edcc38.tar.bz2 |
Revert "PhoneProxy: when using v6 or greater ril make sure current phone type isnt GSM"
This reverts commit 5e0983ba3e96083da094d9706beadacce6b4e9c9.
Change-Id: I1d3727a5ac315309c1ce7aae4fa1d0662984432f
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/android/internal/telephony/PhoneProxy.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/com/android/internal/telephony/PhoneProxy.java b/src/java/com/android/internal/telephony/PhoneProxy.java index a1a8d88..38fe68d 100644 --- a/src/java/com/android/internal/telephony/PhoneProxy.java +++ b/src/java/com/android/internal/telephony/PhoneProxy.java @@ -31,7 +31,6 @@ import android.telephony.CellInfo; import android.telephony.CellLocation; import android.telephony.ServiceState; import android.telephony.SignalStrength; -import android.telephony.TelephonyManager; import android.util.Log; import com.android.internal.telephony.cdma.CDMAPhone; @@ -56,6 +55,8 @@ 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; @@ -147,10 +148,10 @@ public class PhoneProxy extends Handler implements Phone { private void updatePhoneObject(int newVoiceRadioTech) { if (mActivePhone != null) { - int phoneType = TelephonyManager.getPhoneType(TelephonyManager.getDefault().getNetworkType()); - if(mRilVersion >= 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE && phoneType != PhoneConstants.PHONE_TYPE_GSM) { + if((mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) || + mRilV7NeedsCDMALTEPhone) { /* - * On v6 RIL or greater, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone + * On v6 RIL, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone * irrespective of the voice radio tech reported. */ if (mActivePhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { |