mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
make sure the proper layouts are shown at incoming/outgoing calls
This commit is contained in:
@ -159,6 +159,7 @@ class CallActivity : SimpleActivity() {
|
||||
|
||||
private fun updateCallState(state: Int) {
|
||||
when (state) {
|
||||
Call.STATE_RINGING -> callRinging()
|
||||
Call.STATE_ACTIVE -> callStarted()
|
||||
Call.STATE_DISCONNECTED -> endCall()
|
||||
Call.STATE_CONNECTING -> initOutgoingCallUI()
|
||||
@ -190,6 +191,10 @@ class CallActivity : SimpleActivity() {
|
||||
ongoing_call_holder.beVisible()
|
||||
}
|
||||
|
||||
private fun callRinging() {
|
||||
incoming_call_holder.beVisible()
|
||||
}
|
||||
|
||||
private fun callStarted() {
|
||||
incoming_call_holder.beGone()
|
||||
ongoing_call_holder.beVisible()
|
||||
|
Reference in New Issue
Block a user