forked from mirrors/Fedilab
Fix a crash
This commit is contained in:
parent
13fa111394
commit
ff6244883a
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
|||
if (promptDraftListener != null) {
|
||||
promptDraftListener.promptDraft();
|
||||
}
|
||||
if (holder.binding.content.getSelectionStart() > 0) {
|
||||
if (holder.binding.content.getSelectionStart() > 0 && holder.getLayoutPosition() >= 0) {
|
||||
statusList.get(holder.getLayoutPosition()).cursorPosition = holder.binding.content.getSelectionStart();
|
||||
}
|
||||
//Copy/past
|
||||
|
|
Loading…
Reference in a new issue