From 853d8f68f93077d453dca006d9a70ed990d228f6 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Wed, 13 Jul 2016 17:25:37 -0700 Subject: [PATCH] Add alternative EXTRA_CALL_RAT_TYPE definition for noncompliant modems. Some modems use a lowercase version of this extra, which is not correct. Adding an alternate definition so ImsCall can still determine the radio type. Bug: 28933314 Change-Id: I61d13a2aa447877e1c89c3ae474a8614c29492a1 --- telephony/java/com/android/ims/ImsCallProfile.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index 65254d8abc884..36abfc9d288eb 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -205,6 +205,14 @@ public class ImsCallProfile implements Parcelable { */ public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech"; + /** + * Similar to {@link #EXTRA_CALL_RAT_TYPE}, except with a lowercase 'c'. Used to ensure + * compatibility with modems that are non-compliant with the {@link #EXTRA_CALL_RAT_TYPE} + * extra key. Should be removed when the non-compliant modems are fixed. + * @hide + */ + public static final String EXTRA_CALL_RAT_TYPE_ALT = "callRadioTech"; + public int mServiceType; public int mCallType; public int mRestrictCause = CALL_RESTRICT_CAUSE_NONE;