Change the message for when there is no SIM to be more descriptive.
Currently it says "Can't call", switching to "Cellular network not
available."
Bug: 18590972
Change-Id: Ia3d6b1dcf7cfbbd9c2d9e2ebd319c66da85170cb
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index 7ce5005..43f8651 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -101,7 +101,7 @@
Log.d(this, "onCreateOutgoingConnection, phone is null");
return Connection.createFailedConnection(
DisconnectCauseUtil.toTelecomDisconnectCause(
- android.telephony.DisconnectCause.OUTGOING_FAILURE,
+ android.telephony.DisconnectCause.OUT_OF_SERVICE,
"Phone is null"));
}
number = phone.getVoiceMailNumber();
@@ -142,7 +142,7 @@
Log.d(this, "onCreateOutgoingConnection, phone is null");
return Connection.createFailedConnection(
DisconnectCauseUtil.toTelecomDisconnectCause(
- android.telephony.DisconnectCause.OUTGOING_FAILURE, "Phone is null"));
+ android.telephony.DisconnectCause.OUT_OF_SERVICE, "Phone is null"));
}
int state = phone.getServiceState().getState();