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,7 +598,9 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
if (proceedToSplit) {
|
if (proceedToSplit) {
|
||||||
int max_car = MastodonHelper.getInstanceMaxChars(context);
|
int max_car = MastodonHelper.getInstanceMaxChars(context);
|
||||||
ArrayList<String> splitText = ComposeHelper.splitToots(contentString, max_car);
|
ArrayList<String> splitText = ComposeHelper.splitToots(contentString, max_car);
|
||||||
contentString = splitText.get(0);
|
if(!splitText.isEmpty()) {
|
||||||
|
contentString = splitText.get(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int currentLength = MastodonHelper.countLength(holder);
|
int currentLength = MastodonHelper.countLength(holder);
|
||||||
if (promptDraftListener != null) {
|
if (promptDraftListener != null) {
|
||||||
|
|
Loading…
Reference in a new issue