From 242a9ccd9c20a7a2d48962ee9697351b36188500 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 1 Mar 2019 16:46:45 +0100 Subject: [PATCH] This is handled by the lib now --- app/src/main/java/org/linphone/LinphoneService.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/org/linphone/LinphoneService.java b/app/src/main/java/org/linphone/LinphoneService.java index 7d788ce0a..56c963ae3 100644 --- a/app/src/main/java/org/linphone/LinphoneService.java +++ b/app/src/main/java/org/linphone/LinphoneService.java @@ -145,11 +145,6 @@ public final class LinphoneService extends Service { private void onBackgroundMode() { Log.i("[Service] App has entered background mode"); - if (LinphonePreferences.instance() != null - && LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) { - if (LinphoneManager.isInstanciated()) - LinphoneManager.getInstance().subscribeFriendList(false); - } if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) { LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterBackground(); } @@ -157,11 +152,6 @@ public final class LinphoneService extends Service { private void onForegroundMode() { Log.i("[Service] App has left background mode"); - if (LinphonePreferences.instance() != null - && LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) { - if (LinphoneManager.isInstanciated()) - LinphoneManager.getInstance().subscribeFriendList(true); - } if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) { LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterForeground(); }