show the proper call buttons at outgoing calls

This commit is contained in:
tibbi
2020-05-01 18:56:30 +02:00
parent b4d2bdf38d
commit d64546e059

View File

@ -126,6 +126,7 @@ class CallActivity : SimpleActivity() {
when (state) { when (state) {
Call.STATE_ACTIVE -> callStarted() Call.STATE_ACTIVE -> callStarted()
Call.STATE_DISCONNECTED -> endCall() Call.STATE_DISCONNECTED -> endCall()
Call.STATE_CONNECTING -> initOutgoingCallUI()
} }
if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) { if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
@ -149,6 +150,11 @@ class CallActivity : SimpleActivity() {
CallManager.accept() CallManager.accept()
} }
private fun initOutgoingCallUI() {
incoming_call_holder.beGone()
ongoing_call_holder.beVisible()
}
private fun callStarted() { private fun callStarted() {
incoming_call_holder.beGone() incoming_call_holder.beGone()
ongoing_call_holder.beVisible() ongoing_call_holder.beVisible()