aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2021-12-02 12:32:18 +0000
committerGitHub <noreply@github.com>2021-12-02 12:32:18 +0000
commit23818261658c8ad941712b730d07f6ac32885d3b (patch)
tree0c8a02f0d8c0e368f385ea08312a3c434fe60419 /app/src/main/java/ml/docilealligator/infinityforreddit
parent49e0df2980a561d6bb29223d6bcc82c483e5af02 (diff)
parent68db5a670db01d5e05884a825bd358a1df53ddd5 (diff)
downloadinfinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar.gz
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar.bz2
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar.lz
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar.xz
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.tar.zst
infinity-for-reddit-23818261658c8ad941712b730d07f6ac32885d3b.zip
Merge pull request #565 from scria1000/search-filter-fix-1
Recover from no result after switching sort mode
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
index 257f604e..c7a8e7da 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
@@ -1260,7 +1260,8 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
mFetchPostInfoLinearLayout.setOnClickListener(view -> refresh());
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) {
noPostFound();
}