From 0ccc1751b7aa8442553c4608dd3b90a065b68855 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 25 Jan 2022 09:15:32 +0200 Subject: [PATCH] Minor code improvement --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 260ac21a..30abed8b 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -947,9 +947,8 @@ class BaresipService: Service() { nb.addAction(R.drawable.ic_stat_delete, "Delete", deletePendingIntent) nm.notify(MESSAGE_NOTIFICATION_ID, nb.build()) return - } else { - nt.play() } + nt.play() val intent = Intent("service event") intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP intent.putExtra("event", "message show")