Do not fetch contacts when going foreground/background

This commit is contained in:
Sylvain Berfini 2017-03-14 15:02:39 +01:00
parent 190d50f2f7
commit f15283722f

View file

@ -467,8 +467,6 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
LinphoneFriendList mFriendList = (lc.getFriendLists())[0];
Log.i("Presence list subscription is " + (enabled ? "enabled" : "disabled"));
mFriendList.enableSubscriptions(enabled);
if (ContactsManager.getInstance() != null)
ContactsManager.getInstance().fetchContactsAsync();
}
}