fix crash

This commit is contained in:
kosyak 2023-12-27 01:11:08 +01:00
parent 78410291b7
commit c862959e3f

View file

@ -540,9 +540,10 @@ public class MessageAdapter extends ArrayAdapter<Message> {
end = quirk.length(); end = quirk.length();
} else if (start == -1) { } else if (start == -1) {
start = 0; start = 0;
} else if (end == -1) { } else if (end == -1 || end >= body.length()) {
end = body.length(); end = body.length();
} }
applyQuoteSpan(body, start, end, darkBackground, true, message); applyQuoteSpan(body, start, end, darkBackground, true, message);
} }
return startsWithQuote; return startsWithQuote;