Fixed NavDrawer sometimes not updating
This commit is contained in:
parent
e334b9cad6
commit
35f0827f84
|
@ -48,6 +48,7 @@ import io.reactivex.schedulers.Schedulers;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -236,18 +237,18 @@ public class NavDrawerFragment extends Fragment implements AdapterView.OnItemCli
|
|||
startActivity(intent);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onUnreadItemsChanged(UnreadItemsUpdateEvent event) {
|
||||
loadData();
|
||||
}
|
||||
|
||||
|
||||
@Subscribe
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onFeedListChanged(FeedListUpdateEvent event) {
|
||||
loadData();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onQueueChanged(QueueEvent event) {
|
||||
Log.d(TAG, "onQueueChanged(" + event + ")");
|
||||
// we are only interested in the number of queue items, not download status or position
|
||||
|
|
Loading…
Reference in New Issue