mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-03 14:40:07 +02:00
Fix a crash when composing
This commit is contained in:
parent
413d11b3c3
commit
70783bb532
1 changed files with 1 additions and 1 deletions
|
@ -1589,7 +1589,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
if (!mentionsAtTop) {
|
if (!mentionsAtTop) {
|
||||||
holder.binding.content.setSelection(statusDraft.cursorPosition);
|
holder.binding.content.setSelection(statusDraft.cursorPosition);
|
||||||
} else {
|
} else {
|
||||||
if (capitalize && !statusDraft.text.endsWith("\n")) {
|
if (capitalize && statusDraft.text != null && !statusDraft.text.endsWith("\n")) {
|
||||||
statusDraft.text += "\n";
|
statusDraft.text += "\n";
|
||||||
holder.binding.content.setText(statusDraft.text);
|
holder.binding.content.setText(statusDraft.text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue