[Telephony] getDataNetworkType() uses incorrect subid
When data network type is queried without sub id, network type
on default voice sub is being returned. Instead it should return
network type value on dds sub.
Fix is to replace getDefaultSubscritpion with getDefaultDataSubId
Bug: 145683023
Test: make
Change-Id: Ie7ba466f308d5c16a14287228b3036c5bf187c07
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 98b540c..1de3fda 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -4725,8 +4725,8 @@
*/
@Override
public int getDataNetworkType(String callingPackage, String callingFeatureId) {
- return getDataNetworkTypeForSubscriber(getDefaultSubscription(), callingPackage,
- callingFeatureId);
+ return getDataNetworkTypeForSubscriber(mSubscriptionController.getDefaultDataSubId(),
+ callingPackage, callingFeatureId);
}
/**