Load more items even if initial related items are empty
This commit is contained in:
parent
f24f652362
commit
8036b3ac7f
1 changed files with 2 additions and 0 deletions
|
|
@ -237,6 +237,8 @@ public abstract class BaseListInfoFragment<I extends InfoItem, L extends ListInf
|
||||||
if (!result.getRelatedItems().isEmpty()) {
|
if (!result.getRelatedItems().isEmpty()) {
|
||||||
infoListAdapter.addInfoItemList(result.getRelatedItems());
|
infoListAdapter.addInfoItemList(result.getRelatedItems());
|
||||||
showListFooter(hasMoreItems());
|
showListFooter(hasMoreItems());
|
||||||
|
} else if (hasMoreItems()) {
|
||||||
|
loadMoreItems();
|
||||||
} else {
|
} else {
|
||||||
infoListAdapter.clearStreamItemList();
|
infoListAdapter.clearStreamItemList();
|
||||||
showEmptyState();
|
showEmptyState();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue