Fixed NavDrawer sometimes not updating

This commit is contained in:
ByteHamster 2020-10-16 14:15:10 +02:00
parent e334b9cad6
commit 35f0827f84
1 changed files with 4 additions and 3 deletions

View File

@ -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