Using new function for background and foreground
This commit is contained in:
parent
e5b5c47026
commit
3a39acdf13
1 changed files with 6 additions and 0 deletions
|
@ -264,6 +264,9 @@ public final class LinphoneService extends Service {
|
||||||
if (LinphoneManager.isInstanciated())
|
if (LinphoneManager.isInstanciated())
|
||||||
LinphoneManager.getInstance().subscribeFriendList(false);
|
LinphoneManager.getInstance().subscribeFriendList(false);
|
||||||
}
|
}
|
||||||
|
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) {
|
||||||
|
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterBackground();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onForegroundMode() {
|
protected void onForegroundMode() {
|
||||||
|
@ -272,6 +275,9 @@ public final class LinphoneService extends Service {
|
||||||
if (LinphoneManager.isInstanciated())
|
if (LinphoneManager.isInstanciated())
|
||||||
LinphoneManager.getInstance().subscribeFriendList(true);
|
LinphoneManager.getInstance().subscribeFriendList(true);
|
||||||
}
|
}
|
||||||
|
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) {
|
||||||
|
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterForeground();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupActivityMonitor(){
|
private void setupActivityMonitor(){
|
||||||
|
|
Loading…
Reference in a new issue