Fix issue #338 #315 - Copy/Paste in threads

This commit is contained in:
Thomas 2022-10-07 18:49:54 +02:00
parent 12e1360cc1
commit 10f2ac396c

View file

@ -245,7 +245,7 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
statusList.addAll(0, context.ancestors); statusList.addAll(0, context.ancestors);
composeAdapter.setStatusCount(context.ancestors.size() + 1); composeAdapter.setStatusCount(context.ancestors.size() + 1);
composeAdapter.notifyItemRangeInserted(0, context.ancestors.size()); composeAdapter.notifyItemRangeInserted(0, context.ancestors.size());
composeAdapter.notifyItemChanged(context.ancestors.size() + 1); // composeAdapter.notifyItemChanged(context.ancestors.size() + 1);
if (binding.recyclerView.getItemDecorationCount() > 0) { if (binding.recyclerView.getItemDecorationCount() > 0) {
for (int i = 0; i < binding.recyclerView.getItemDecorationCount(); i++) { for (int i = 0; i < binding.recyclerView.getItemDecorationCount(); i++) {
binding.recyclerView.removeItemDecorationAt(i); binding.recyclerView.removeItemDecorationAt(i);