mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-25 14:40:09 +03:00
Fix a crash with auto-split messages
This commit is contained in:
parent
c2683995a1
commit
4baadfba17
1 changed files with 3 additions and 1 deletions
|
@ -598,8 +598,10 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
|||
if (proceedToSplit) {
|
||||
int max_car = MastodonHelper.getInstanceMaxChars(context);
|
||||
ArrayList<String> splitText = ComposeHelper.splitToots(contentString, max_car);
|
||||
if(!splitText.isEmpty()) {
|
||||
contentString = splitText.get(0);
|
||||
}
|
||||
}
|
||||
int currentLength = MastodonHelper.countLength(holder);
|
||||
if (promptDraftListener != null) {
|
||||
promptDraftListener.promptDraft();
|
||||
|
|
Loading…
Reference in a new issue