hang up on Back press only at outgoing calls

This commit is contained in:
tibbi 2018-11-21 19:54:25 +01:00
parent 8be55a4be1
commit 758799b87c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class DialerActivity : SimpleActivity(), SensorEventListener {
override fun onBackPressed() {
super.onBackPressed()
if (!isCallActive) {
if (!isCallActive && !isIncomingCall) {
hangUp()
}
}