fix crash
This commit is contained in:
parent
78410291b7
commit
c862959e3f
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue