mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
@@ -33,12 +33,13 @@ public class FeedControllerImpl extends DbControllerImpl
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
@Inject
|
||||
AndroidNotificationManager notificationManager;
|
||||
@Inject
|
||||
protected EventBus eventBus;
|
||||
|
||||
@Inject
|
||||
protected volatile BlogManager blogManager;
|
||||
@Inject
|
||||
protected volatile IdentityManager identityManager;
|
||||
@Inject
|
||||
protected volatile EventBus eventBus;
|
||||
|
||||
private volatile OnBlogPostAddedListener listener;
|
||||
|
||||
@@ -48,14 +49,14 @@ public class FeedControllerImpl extends DbControllerImpl
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
notificationManager.blockBlogNotification();
|
||||
notificationManager.clearBlogPostNotification();
|
||||
notificationManager.blockAllBlogPostNotifications();
|
||||
notificationManager.clearAllBlogPostNotifications();
|
||||
eventBus.addListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
notificationManager.unblockBlogNotification();
|
||||
notificationManager.unblockAllBlogPostNotifications();
|
||||
eventBus.removeListener(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user