mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 11:58:09 +00:00
Should fix issue 1263
This commit is contained in:
parent
5f82e467b4
commit
7b8b19ac76
1 changed files with 3 additions and 1 deletions
|
|
@ -265,7 +265,9 @@ public class BubbleChat {
|
|||
int indexOf = text.indexOf(key);
|
||||
while (indexOf >= 0) {
|
||||
int end = indexOf + key.length();
|
||||
builder.setSpan(new ImageSpan(context, entry.getValue()), indexOf, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
if (end <= spanned.length()) {
|
||||
builder.setSpan(new ImageSpan(context, entry.getValue()), indexOf, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
indexOf = text.indexOf(key, end);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue