From 7a5f2ea2e4e52f1d47f77d82cfa3fa7064ef50a9 Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Thu, 15 Sep 2016 07:29:23 -0500 Subject: PhoneFactory: fix creating a cdma phone type * TelephonyComponentFactory.makePhone expects a type of PhoneConstants.PHONE_TYPE_GSM or PhoneConstants.PHONE_TYPE_CDMA but we're sending in PhoneConstants.PHONE_TYPE_CDMA_LTE which is going to end up leaving us with a null Phone object Change-Id: I76ae6149199e7fa625eb9b85b39d3985e04aecf4 --- src/java/com/android/internal/telephony/PhoneFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/android/internal/telephony/PhoneFactory.java b/src/java/com/android/internal/telephony/PhoneFactory.java index 191e13b7a..4b790f63c 100644 --- a/src/java/com/android/internal/telephony/PhoneFactory.java +++ b/src/java/com/android/internal/telephony/PhoneFactory.java @@ -181,7 +181,7 @@ public class PhoneFactory { } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { phone = telephonyComponentFactory.makePhone(context, sCommandsInterfaces[i], sPhoneNotifier, i, - PhoneConstants.PHONE_TYPE_CDMA_LTE, + PhoneConstants.PHONE_TYPE_CDMA, telephonyComponentFactory); } Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i); -- cgit v1.2.3