Merge "Use sub specific telephony for emergency supl" into rvc-dev
This commit is contained in:
@@ -711,6 +711,15 @@ class GnssNetworkConnectivityHandler {
|
|||||||
}
|
}
|
||||||
TelephonyManager phone = (TelephonyManager)
|
TelephonyManager phone = (TelephonyManager)
|
||||||
mContext.getSystemService(Context.TELEPHONY_SERVICE);
|
mContext.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
|
// During an emergency call with an active sub id, get the Telephony Manager specific
|
||||||
|
// to the active sub to get the correct value from getServiceState and getNetworkType
|
||||||
|
if (mNiHandler.getInEmergency() && mActiveSubId >= 0) {
|
||||||
|
TelephonyManager subIdTelManager =
|
||||||
|
phone.createForSubscriptionId(mActiveSubId);
|
||||||
|
if (subIdTelManager != null) {
|
||||||
|
phone = subIdTelManager;
|
||||||
|
}
|
||||||
|
}
|
||||||
ServiceState serviceState = phone.getServiceState();
|
ServiceState serviceState = phone.getServiceState();
|
||||||
String projection = null;
|
String projection = null;
|
||||||
String selection = null;
|
String selection = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user