feat(remote-followers): fallback when results from remote server are empty

This commit is contained in:
LucasGGamerM
2023-04-20 15:00:45 -03:00
parent ef541058c4
commit 73a9073ee4

View File

@@ -79,7 +79,11 @@ public abstract class PaginatedAccountListFragment extends BaseAccountListFragme
remoteAccount.acct = remoteAccount.username;
}
});
onDataLoaded(result.stream().map(AccountItem::new).collect(Collectors.toList()), nextMaxID!=null);
if(!result.isEmpty()){
onDataLoaded(result.stream().map(AccountItem::new).collect(Collectors.toList()), nextMaxID!=null);
} else {
loadFollower(offset, count);
}
}
@Override