aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Pasanen <invisiblek@cyanogenmod.org>2016-09-15 07:29:23 -0500
committerMichael Bestas <mikeioannina@gmail.com>2017-01-07 01:41:41 +0200
commit7a5f2ea2e4e52f1d47f77d82cfa3fa7064ef50a9 (patch)
tree9d74030eae7fad1e32e067f17f6e2e2cebed61ec
parentcb1b10ca6c4e82f1107656fa27124d8fc35cb67d (diff)
downloadandroid_frameworks_opt_telephony-7a5f2ea2e4e52f1d47f77d82cfa3fa7064ef50a9.tar.gz
android_frameworks_opt_telephony-7a5f2ea2e4e52f1d47f77d82cfa3fa7064ef50a9.tar.bz2
android_frameworks_opt_telephony-7a5f2ea2e4e52f1d47f77d82cfa3fa7064ef50a9.zip
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
-rw-r--r--src/java/com/android/internal/telephony/PhoneFactory.java2
1 files changed, 1 insertions, 1 deletions
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);