Using new function for background and foreground

This commit is contained in:
Erwan Croze 2018-05-17 14:38:28 +02:00
parent e5b5c47026
commit 3a39acdf13

View file

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