Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 2d72056..130e9a8 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2168,6 +2168,16 @@
}
/**
+ * returns true, if the device is in a state where both voice and data
+ * are supported simultaneously. This can change based on location or network condition.
+ */
+ @Override
+ public boolean isConcurrentVoiceAndDataAllowed(int subId) {
+ final Phone phone = getPhone(subId);
+ return (phone == null ? false : phone.isConcurrentVoiceAndDataAllowed());
+ }
+
+ /**
* Returns the data network type.
* Legacy call, permission-free.
*