From 3ba131b3deb03c2487f30811688ef349bf3d2a7d Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 4 May 2020 11:14:22 +0300 Subject: [PATCH] - Fixed crash when calling from Call History. --- app/src/main/kotlin/com/tutpro/baresip/CallsActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/tutpro/baresip/CallsActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/CallsActivity.kt index d8f2d243..64b5f31c 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/CallsActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/CallsActivity.kt @@ -55,6 +55,8 @@ class CallsActivity : AppCompatActivity() { val dialogClickListener = DialogInterface.OnClickListener { _, which -> when (which) { DialogInterface.BUTTON_POSITIVE, DialogInterface.BUTTON_NEGATIVE -> { + BaresipService.activities.remove("calls,$aor") + returnResult() val i = Intent(this@CallsActivity, MainActivity::class.java) i.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP if (which == DialogInterface.BUTTON_NEGATIVE)