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
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -791,6 +791,8 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
mGlide.clear(mFetchPostInfoImageView); mGlide.clear(mFetchPostInfoImageView);
if (children != null) { if (children != null) {
children.clear(); children.clear();
pages_loaded = 0;
mCommentsAdapter.clearLoadedComments();
} }
this.sortType = sortType.getType(); this.sortType = sortType.getType();
if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SAVE_SORT_TYPE, true)) { if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SAVE_SORT_TYPE, true)) {