From 67d30b90e445163b09e325f8fc28154037f93266 Mon Sep 17 00:00:00 2001 From: Docile-Alligator Date: Sat, 14 May 2022 19:26:26 +0800 Subject: Fix inbox count not updating after reading a message. --- .../infinityforreddit/adapters/MessageRecyclerViewAdapter.java | 6 +++++- .../navigationdrawer/AccountSectionRecyclerViewAdapter.java | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MessageRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MessageRecyclerViewAdapter.java index dce42d12..1fd5f7f0 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MessageRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MessageRecyclerViewAdapter.java @@ -17,6 +17,8 @@ import androidx.paging.PagedListAdapter; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.RecyclerView; +import org.greenrobot.eventbus.EventBus; + import java.util.ArrayList; import butterknife.BindView; @@ -40,6 +42,7 @@ import ml.docilealligator.infinityforreddit.activities.LinkResolverActivity; import ml.docilealligator.infinityforreddit.activities.ViewPrivateMessagesActivity; import ml.docilealligator.infinityforreddit.activities.ViewUserDetailActivity; import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; +import ml.docilealligator.infinityforreddit.events.ChangeInboxCountEvent; import ml.docilealligator.infinityforreddit.markdown.SpoilerParserPlugin; import ml.docilealligator.infinityforreddit.markdown.SuperscriptInlineProcessor; import ml.docilealligator.infinityforreddit.message.FetchMessage; @@ -171,7 +174,7 @@ public class MessageRecyclerViewAdapter extends PagedListAdapter