diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt index a48ca7ac..2f6a19c6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt @@ -70,6 +70,17 @@ class CallActivity : SimpleActivity() { if (proximityWakeLock?.isHeld == true) { proximityWakeLock!!.release() } + + if (CallManager.getState() == Call.STATE_DIALING) { + endCall() + } + } + + override fun onBackPressed() { + super.onBackPressed() + if (CallManager.getState() == Call.STATE_DIALING) { + endCall() + } } private fun initButtons() {