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