aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-20 02:38:26 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-20 02:38:26 +0000
commitc5480bfb98a93531a4306e2cd3488aaaa2e5e859 (patch)
tree8cc80a3e426811a268d0b584984ca7f9ae57d466 /app
parent4f40f73c988086ca58722cc28fa4b6da616a14c1 (diff)
downloadinfinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar.gz
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar.bz2
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar.lz
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar.xz
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.tar.zst
infinity-for-reddit-c5480bfb98a93531a4306e2cd3488aaaa2e5e859.zip
Fix an issue in lazy mode.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java
index f6361088..c8d58e11 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java
@@ -208,7 +208,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
if (mPostRecyclerView.getAdapter() != null) {
((PostRecyclerViewAdapter) mPostRecyclerView.getAdapter()).setCanStartActivity(true);
}
- if (isInLazyMode && isLazyModePaused) {
+ if (isInLazyMode) {
resumeLazyMode(false);
}
if (mAdapter != null && mPostRecyclerView != null) {
@@ -356,9 +356,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
}
isInLazyMode = savedInstanceState.getBoolean(IS_IN_LAZY_MODE_STATE);
- if (isInLazyMode) {
- resumeLazyMode(false);
- }
}
mPostRecyclerView.setOnTouchListener((view, motionEvent) -> {