This is handled by the lib now

This commit is contained in:
Sylvain Berfini 2019-03-01 16:46:45 +01:00
parent 460640d59e
commit 242a9ccd9c

View file

@ -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();
}