hang up on Back press only at outgoing calls
This commit is contained in:
parent
8be55a4be1
commit
758799b87c
|
@ -97,7 +97,7 @@ class DialerActivity : SimpleActivity(), SensorEventListener {
|
|||
|
||||
override fun onBackPressed() {
|
||||
super.onBackPressed()
|
||||
if (!isCallActive) {
|
||||
if (!isCallActive && !isIncomingCall) {
|
||||
hangUp()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue