mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 20:37:12 +01:00
Fix showing wrong comment after user submitted a comment in ViewPostDetailFragment.
This commit is contained in:
parent
2236305e19
commit
9819059e29
@ -845,9 +845,9 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
|
||||
mVisibleComments.add(0, comment);
|
||||
|
||||
if (isInitiallyLoading) {
|
||||
notifyItemInserted(2);
|
||||
} else {
|
||||
notifyItemInserted(1);
|
||||
} else {
|
||||
notifyItemInserted(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -570,7 +570,6 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
|
||||
mRecyclerView.setAdapter(mConcatAdapter);
|
||||
}
|
||||
|
||||
|
||||
if (comments == null) {
|
||||
fetchCommentsRespectRecommendedSort(false);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user