This is handled by the lib now
This commit is contained in:
parent
460640d59e
commit
242a9ccd9c
1 changed files with 0 additions and 10 deletions
|
@ -145,11 +145,6 @@ public final class LinphoneService extends Service {
|
||||||
|
|
||||||
private void onBackgroundMode() {
|
private void onBackgroundMode() {
|
||||||
Log.i("[Service] App has entered background mode");
|
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) {
|
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) {
|
||||||
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterBackground();
|
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterBackground();
|
||||||
}
|
}
|
||||||
|
@ -157,11 +152,6 @@ public final class LinphoneService extends Service {
|
||||||
|
|
||||||
private void onForegroundMode() {
|
private void onForegroundMode() {
|
||||||
Log.i("[Service] App has left background mode");
|
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) {
|
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null) {
|
||||||
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterForeground();
|
LinphoneManager.getLcIfManagerNotDestroyedOrNull().enterForeground();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue