From c5480bfb98a93531a4306e2cd3488aaaa2e5e859 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 20 Sep 2020 10:38:26 +0800 Subject: Fix an issue in lazy mode. --- .../ml/docilealligator/infinityforreddit/Fragment/PostFragment.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/src/main/java') 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) -> { -- cgit v1.2.3