From 3a39acdf136e2c01bab0d554c54c1dbec82d67ee Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 17 May 2018 14:38:28 +0200 Subject: [PATCH] Using new function for background and foreground --- src/android/org/linphone/LinphoneService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/android/org/linphone/LinphoneService.java b/src/android/org/linphone/LinphoneService.java index af710db1b..3f0a4bdaa 100644 --- a/src/android/org/linphone/LinphoneService.java +++ b/src/android/org/linphone/LinphoneService.java @@ -264,6 +264,9 @@ public final class LinphoneService extends Service { if (LinphoneManager.isInstanciated()) LinphoneManager.getInstance().subscribeFriendList(false); } + if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) { + LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterBackground(); + } } protected void onForegroundMode() { @@ -272,6 +275,9 @@ public final class LinphoneService extends Service { if (LinphoneManager.isInstanciated()) LinphoneManager.getInstance().subscribeFriendList(true); } + if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) { + LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterForeground(); + } } private void setupActivityMonitor(){