- Fixed crash when calling from Call History.

This commit is contained in:
Juha Heinanen
2020-05-04 11:14:22 +03:00
parent 8ea2f8ce5c
commit 3ba131b3de

View File

@ -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)