From 76455c14914dc8c063e7aa0bb7e84b5d4f4b19f5 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 28 Feb 2023 17:15:24 +0100 Subject: [PATCH] Fixed crash when creating CoreContext from BroadcastReceiver context --- .../org/linphone/notifications/NotificationBroadcastReceiver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/linphone/notifications/NotificationBroadcastReceiver.kt b/app/src/main/java/org/linphone/notifications/NotificationBroadcastReceiver.kt index 5e4163307..ebfc134cd 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationBroadcastReceiver.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationBroadcastReceiver.kt @@ -33,7 +33,7 @@ import org.linphone.core.tools.Log class NotificationBroadcastReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { Log.i("[Notification Broadcast Receiver] Ensuring Core exists") - ensureCoreExists(context, false) + ensureCoreExists(context.applicationContext, false) val notificationId = intent.getIntExtra(NotificationsManager.INTENT_NOTIF_ID, 0) Log.i("[Notification Broadcast Receiver] Got notification broadcast for ID [$notificationId]")