Fix an issue in lazy mode.

This commit is contained in:
Alex Ning 2020-09-20 10:38:26 +08:00
parent 4f40f73c98
commit c5480bfb98

View File

@ -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) -> {