Merge "Add a SubId to getDataState and getDataActivity"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 87b2033..1ba1edd 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1871,10 +1871,10 @@
}
@Override
- public int getDataState() {
+ public int getDataState(int subId) {
final long identity = Binder.clearCallingIdentity();
try {
- Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId());
+ final Phone phone = getPhone(subId);
if (phone != null) {
return PhoneConstantConversions.convertDataState(phone.getDataConnectionState());
} else {
@@ -1887,10 +1887,10 @@
}
@Override
- public int getDataActivity() {
+ public int getDataActivity(int subId) {
final long identity = Binder.clearCallingIdentity();
try {
- Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId());
+ final Phone phone = getPhone(subId);
if (phone != null) {
return DefaultPhoneNotifier.convertDataActivityState(phone.getDataActivityState());
} else {