From 0ea491bcfc2f1d97b9d1e7892017a7313065b8e7 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Sat, 12 Aug 2023 21:54:29 +0200 Subject: [PATCH] Fix issue with changing comment sort type on post page --- .../infinityforlemmy/fragments/ViewPostDetailFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/fragments/ViewPostDetailFragment.java b/app/src/main/java/eu/toldi/infinityforlemmy/fragments/ViewPostDetailFragment.java index dfec8a09..f2e7aeb1 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/fragments/ViewPostDetailFragment.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/fragments/ViewPostDetailFragment.java @@ -791,6 +791,8 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic mGlide.clear(mFetchPostInfoImageView); if (children != null) { children.clear(); + pages_loaded = 0; + mCommentsAdapter.clearLoadedComments(); } this.sortType = sortType.getType(); if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SAVE_SORT_TYPE, true)) {