Fix issue with changing comment sort type on post page

This commit is contained in:
Balazs Toldi
2023-08-12 21:54:29 +02:00
parent 946d35b5d9
commit 0ea491bcfc

View File

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