Skip to content

Commit

Permalink
Hide empty state text when there are posts in the Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horta committed Feb 27, 2024
1 parent ba2e5b2 commit 557dff1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ private void showBookmarksSavedLocallyDialog(ShowBookmarkedSavedOnlyLocallyDialo
private final ReaderInterfaces.DataLoadedListener mDataLoadedListener = new ReaderInterfaces.DataLoadedListener() {
@Override
public void onDataLoaded(boolean isEmpty) {
if (!isAdded() || !mHasUpdatedPosts) {
if (!isAdded() || (isEmpty && !mHasUpdatedPosts)) {
return;
}
if (isEmpty) {
Expand Down Expand Up @@ -2322,7 +2322,7 @@ public void run() {
requireActivity().runOnUiThread(() -> updateCurrentTag());
} else {
requireActivity().runOnUiThread(() -> {
if ((isBookmarksList()) && isPostAdapterEmpty() && isAdded()) {
if (isBookmarksList() && isPostAdapterEmpty() && isAdded()) {
setEmptyTitleAndDescriptionForBookmarksList();
mActionableEmptyView.image.setImageResource(
R.drawable.illustration_reader_empty);
Expand Down

0 comments on commit 557dff1

Please sign in to comment.