Suport IMS services (SRLTE and non-SRLTE)
Make sure that data registration state is only checked for LTE connections.
Bug: 23037591
Change-Id: I2f03788d63d35972c9d3dac96339aa2faf872584
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index 5848135..9c53898 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -186,7 +186,9 @@
// when voice RAT is OOS but Data RAT is present.
int state = phone.getServiceState().getState();
if (state == ServiceState.STATE_OUT_OF_SERVICE) {
- state = phone.getServiceState().getDataRegState();
+ if (phone.getServiceState().getDataNetworkType() == TelephonyManager.NETWORK_TYPE_LTE) {
+ state = phone.getServiceState().getDataRegState();
+ }
}
boolean useEmergencyCallHelper = false;