Loading src/java/com/android/internal/telephony/PhoneFactory.java +7 −2 Original line number Diff line number Diff line Loading @@ -157,11 +157,9 @@ public class PhoneFactory { if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { phone = new GSMPhone(context, sCommandsInterfaces[i], sPhoneNotifier, i); phone.startMonitoringImsService(); } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { phone = new CDMALTEPhone(context, sCommandsInterfaces[i], sPhoneNotifier, i); phone.startMonitoringImsService(); } Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i); Loading Loading @@ -195,6 +193,13 @@ public class PhoneFactory { sSubInfoRecordUpdater = new SubscriptionInfoUpdater(context, sProxyPhones, sCommandsInterfaces); SubscriptionController.getInstance().updatePhonesAvailability(sProxyPhones); // Start monitoring after defaults have been made. // Default phone must be ready before ImsPhone is created // because ImsService might need it when it is being opened. for (int i = 0; i < numPhones; i++) { sProxyPhones[i].startMonitoringImsService(); } } } } Loading src/java/com/android/internal/telephony/PhoneProxy.java +5 −1 Original line number Diff line number Diff line Loading @@ -1504,7 +1504,11 @@ public class PhoneProxy extends Handler implements Phone { public ImsPhone relinquishOwnershipOfImsPhone() { return null; } @Override public void startMonitoringImsService() {} public void startMonitoringImsService() { if (mActivePhone != null) { mActivePhone.startMonitoringImsService(); } } @Override public void acquireOwnershipOfImsPhone(ImsPhone imsPhone) { } Loading Loading
src/java/com/android/internal/telephony/PhoneFactory.java +7 −2 Original line number Diff line number Diff line Loading @@ -157,11 +157,9 @@ public class PhoneFactory { if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { phone = new GSMPhone(context, sCommandsInterfaces[i], sPhoneNotifier, i); phone.startMonitoringImsService(); } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { phone = new CDMALTEPhone(context, sCommandsInterfaces[i], sPhoneNotifier, i); phone.startMonitoringImsService(); } Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i); Loading Loading @@ -195,6 +193,13 @@ public class PhoneFactory { sSubInfoRecordUpdater = new SubscriptionInfoUpdater(context, sProxyPhones, sCommandsInterfaces); SubscriptionController.getInstance().updatePhonesAvailability(sProxyPhones); // Start monitoring after defaults have been made. // Default phone must be ready before ImsPhone is created // because ImsService might need it when it is being opened. for (int i = 0; i < numPhones; i++) { sProxyPhones[i].startMonitoringImsService(); } } } } Loading
src/java/com/android/internal/telephony/PhoneProxy.java +5 −1 Original line number Diff line number Diff line Loading @@ -1504,7 +1504,11 @@ public class PhoneProxy extends Handler implements Phone { public ImsPhone relinquishOwnershipOfImsPhone() { return null; } @Override public void startMonitoringImsService() {} public void startMonitoringImsService() { if (mActivePhone != null) { mActivePhone.startMonitoringImsService(); } } @Override public void acquireOwnershipOfImsPhone(ImsPhone imsPhone) { } Loading