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