am 5cb43e44: Suport IMS services (SRLTE and non-SRLTE)
* commit '5cb43e447fef2dc48b07a21a602c1bef1079e365':
Suport IMS services (SRLTE and non-SRLTE)
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index 9db6ff8..2cc9f03 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;