mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue with the bad position for written statuses added in timelines
This commit is contained in:
parent
830e778b43
commit
dc899bdb7d
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ public class FragmentMastodonContext extends Fragment {
|
|||
int i = 0;
|
||||
for (Status status : statuses) {
|
||||
if (status.id.equals(convertStatus.in_reply_to_id)) {
|
||||
statuses.add(i, convertStatus);
|
||||
statusAdapter.notifyItemInserted(i);
|
||||
statuses.add((i + 1), convertStatus);
|
||||
statusAdapter.notifyItemInserted((i + 1));
|
||||
if (requireActivity() instanceof ContextActivity) {
|
||||
//Redraw decorations
|
||||
statusAdapter.notifyItemRangeChanged(0, statuses.size());
|
||||
|
|
Loading…
Reference in a new issue