show the call status below the other sides name

This commit is contained in:
tibbi
2020-05-01 17:01:27 +02:00
parent 6be6b546f5
commit b02468e5db
5 changed files with 29 additions and 1 deletions

View File

@ -118,6 +118,16 @@ class CallActivity : SimpleActivity() {
Call.STATE_ACTIVE -> callStarted()
Call.STATE_DISCONNECTED -> endCall()
}
val statusTextId = when (state) {
Call.STATE_RINGING -> R.string.is_calling
Call.STATE_DIALING -> R.string.is_called
Call.STATE_DISCONNECTED -> R.string.call_ended
Call.STATE_DISCONNECTING -> R.string.call_ending
else -> R.string.empty
}
call_status_label.text = getString(statusTextId)
}
private fun acceptCall() {