mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show the proper call buttons at outgoing calls
This commit is contained in:
@ -126,6 +126,7 @@ class CallActivity : SimpleActivity() {
|
||||
when (state) {
|
||||
Call.STATE_ACTIVE -> callStarted()
|
||||
Call.STATE_DISCONNECTED -> endCall()
|
||||
Call.STATE_CONNECTING -> initOutgoingCallUI()
|
||||
}
|
||||
|
||||
if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
|
||||
@ -149,6 +150,11 @@ class CallActivity : SimpleActivity() {
|
||||
CallManager.accept()
|
||||
}
|
||||
|
||||
private fun initOutgoingCallUI() {
|
||||
incoming_call_holder.beGone()
|
||||
ongoing_call_holder.beVisible()
|
||||
}
|
||||
|
||||
private fun callStarted() {
|
||||
incoming_call_holder.beGone()
|
||||
ongoing_call_holder.beVisible()
|
||||
|
Reference in New Issue
Block a user