show the proper call buttons at outgoing calls
This commit is contained in:
parent
b4d2bdf38d
commit
d64546e059
1 changed files with 6 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue