Merge "Add subscription specific API for IMS registration status"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index de60c61..2c4ebee 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -3239,6 +3239,21 @@
return mPhone.isImsRegistered();
}
+ /**
+ * {@hide}
+ * Returns the IMS Registration Status on a particular subid
+ *
+ * @param subId
+ */
+ public boolean isImsRegisteredForSubscriber(int subId) {
+ Phone phone = getPhone(subId);
+ if (phone != null) {
+ return phone.isImsRegistered();
+ } else {
+ return false;
+ }
+ }
+
@Override
public int getSubIdForPhoneAccount(PhoneAccount phoneAccount) {
return PhoneUtils.getSubIdForPhoneAccount(phoneAccount);