mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 21:07:11 +01:00
Merge pull request #565 from scria1000/search-filter-fix-1
Recover from no result after switching sort mode
This commit is contained in:
commit
2381826165
@ -1260,7 +1260,8 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
|||||||
mFetchPostInfoLinearLayout.setOnClickListener(view -> refresh());
|
mFetchPostInfoLinearLayout.setOnClickListener(view -> refresh());
|
||||||
showErrorView(R.string.load_posts_error);
|
showErrorView(R.string.load_posts_error);
|
||||||
}
|
}
|
||||||
if (appendLoadState instanceof LoadState.NotLoading) {
|
if (!(refreshLoadState instanceof LoadState.Loading) // #563
|
||||||
|
&& appendLoadState instanceof LoadState.NotLoading) {
|
||||||
if (appendLoadState.getEndOfPaginationReached() && mAdapter.getItemCount() < 1) {
|
if (appendLoadState.getEndOfPaginationReached() && mAdapter.getItemCount() < 1) {
|
||||||
noPostFound();
|
noPostFound();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user