forked from mirror/monocles_chat_clean
This should never happen but crash logs say it do
Not colouring is better than crashing (cherry picked from commit 3725dba15881df3fe7c26c40204bf48f8d8d02b0)
This commit is contained in:
parent
22774ec01f
commit
42c22a4c05
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ public class IrregularUnicodeDetector {
|
|||
String[] labels = jid.getDomain().toEscapedString().split("\\.");
|
||||
for (int i = 0; i < labels.length; ++i) {
|
||||
SpannableString spannableString = new SpannableString(labels[i]);
|
||||
colorize(spannableString, patternTuple.domain.get(i), color);
|
||||
if (patternTuple.domain.size() > i) {
|
||||
colorize(spannableString, patternTuple.domain.get(i), color);
|
||||
}
|
||||
if (i != 0) {
|
||||
builder.append('.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue