Skip to content

Commit f69531c

Browse files
author
Thomas Horta
committed
Fix empty view being hidden when coming back to Subscriptions
The empty view is being reused for showing several messages, including the fetch message. Because of that, that are pieces of code that rely on previous code showing the "empty view" and just alter its content, without calling "show" again. If we hide the empty view when the list is actually empty, we get to a scenario of a blank screen when coming back to this feed from some other screens. Example: with 0 blog subscriptions, in the Subscriptions feed, going to the tag suggestions and back cause the Subscriptions feed to be blank.
1 parent 5b573f6 commit f69531c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ public void run() {
23322332
mActionableEmptyView.button.setVisibility(View.GONE);
23332333
mActionableEmptyView.subtitle.setVisibility(View.GONE);
23342334
showEmptyView();
2335-
} else {
2335+
} else if (!isPostAdapterEmpty()) {
23362336
hideEmptyView();
23372337
}
23382338
});

0 commit comments

Comments
 (0)