mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-08 12:50:29 +03:00
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) {
|
if (promptDraftListener != null) {
|
||||||
promptDraftListener.promptDraft();
|
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();
|
statusList.get(holder.getLayoutPosition()).cursorPosition = holder.binding.content.getSelectionStart();
|
||||||
}
|
}
|
||||||
//Copy/past
|
//Copy/past
|
||||||
|
|
Loading…
Reference in a new issue