Do not to forget to enable RLS after lest background mode

This commit is contained in:
Erwan Croze 2017-03-06 17:12:19 +01:00
parent 058fd78ce7
commit 3e33477d6c

View file

@ -245,6 +245,10 @@ public final class LinphoneService extends Service {
protected void onForegroundMode() { protected void onForegroundMode() {
Log.i("App has left background mode"); Log.i("App has left background mode");
if (LinphonePreferences.instance() != null && LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) {
if (LinphoneManager.isInstanciated())
LinphoneManager.getInstance().subscribeFriendList(true);
}
} }
private void setupActivityMonitor(){ private void setupActivityMonitor(){