From efef60a1580d8c67f8e173f5a7aab1eb0b7205bd Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Wed, 4 Feb 2015 11:05:51 +0100 Subject: [PATCH] Fix background mode --- src/org/linphone/LinphoneService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/LinphoneService.java b/src/org/linphone/LinphoneService.java index 926518127..bb859f047 100644 --- a/src/org/linphone/LinphoneService.java +++ b/src/org/linphone/LinphoneService.java @@ -168,7 +168,7 @@ public final class LinphoneService extends Service { } instance = this; // instance is ready once linphone manager has been created - mListener = new LinphoneCoreListenerBase(){ + LinphoneManager.getLc().addListener(mListener = new LinphoneCoreListenerBase(){ @Override public void callState(LinphoneCore lc, LinphoneCall call, LinphoneCall.State state, String message) { @@ -240,7 +240,7 @@ public final class LinphoneService extends Service { } } } - }; + }); // Retrieve methods to publish notification and keep Android // from killing us and keep the audio quality high.