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

Unverified Commit 7a5f2ea2 authored by Dan Pasanen's avatar Dan Pasanen Committed by Michael Bestas
Browse files

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
parent cb1b10ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);