From f74f6e5911b2b6d9f1b451aac37902e8f17e7b4e Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 16 May 2019 17:27:58 +0200 Subject: [PATCH] Fixed crash if foreground service notification is enabled --- app/src/main/java/org/linphone/LinphoneService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/linphone/LinphoneService.java b/app/src/main/java/org/linphone/LinphoneService.java index c86e4c469..0bf1e6390 100644 --- a/app/src/main/java/org/linphone/LinphoneService.java +++ b/app/src/main/java/org/linphone/LinphoneService.java @@ -190,10 +190,11 @@ public final class LinphoneService extends Service { return START_STICKY; } - mNotificationManager = new NotificationsManager(this); mLinphoneManager = new LinphoneManager(this); sInstance = this; // sInstance is ready once linphone manager has been created + + mNotificationManager = new NotificationsManager(this); if (Version.sdkAboveOrEqual(Version.API26_O_80) && intent != null && intent.getBooleanExtra("ForceStartForeground", false)) {