if the other party hangs up before establishing, close screen immediately
This commit is contained in:
parent
44b6d1fc5a
commit
e96463ad82
|
@ -151,12 +151,16 @@ class DialerActivity : SimpleActivity(), SensorEventListener {
|
|||
}
|
||||
|
||||
private fun statusDisconnected() {
|
||||
isCallActive = false
|
||||
timerHandler.removeCallbacksAndMessages(null)
|
||||
dialer_hangup_button.beGone()
|
||||
if (isCallActive) {
|
||||
dialer_hangup_button.postDelayed({
|
||||
finish()
|
||||
}, DISCONNECT_DELAY)
|
||||
} else {
|
||||
finish()
|
||||
}
|
||||
isCallActive = false
|
||||
}
|
||||
|
||||
private fun updateOtherParticipant(contact: Contact?) {
|
||||
|
|
Loading…
Reference in New Issue