Fix spoiler issue when composing threads

This commit is contained in:
Thomas 2023-08-16 10:09:41 +02:00
parent eec448491f
commit c1b256f150

View file

@ -796,6 +796,7 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
} }
status.spoiler_text = statusList.get(position - 1).spoiler_text; status.spoiler_text = statusList.get(position - 1).spoiler_text;
status.sensitive = statusList.get(position - 1).sensitive; status.sensitive = statusList.get(position - 1).sensitive;
status.spoilerChecked = statusList.get(position - 1).spoilerChecked;
statusList.add(status); statusList.add(status);
composeAdapter.notifyItemInserted(position); composeAdapter.notifyItemInserted(position);
composeAdapter.notifyItemRangeChanged(0, statusList.size()); composeAdapter.notifyItemRangeChanged(0, statusList.size());