fix crash
This commit is contained in:
parent
78410291b7
commit
c862959e3f
|
@ -540,9 +540,10 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
end = quirk.length();
|
||||
} else if (start == -1) {
|
||||
start = 0;
|
||||
} else if (end == -1) {
|
||||
} else if (end == -1 || end >= body.length()) {
|
||||
end = body.length();
|
||||
}
|
||||
|
||||
applyQuoteSpan(body, start, end, darkBackground, true, message);
|
||||
}
|
||||
return startsWithQuote;
|
||||
|
|
Loading…
Reference in a new issue