Fixed highlighting email addresses in names

This commit is contained in:
M66B 2024-05-28 08:26:48 +02:00
parent 9be5d1b385
commit 5431b622ea
1 changed files with 3 additions and 2 deletions

View File

@ -2573,8 +2573,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Matcher m = Helper.EMAIL_ADDRESS.matcher(personal);
while (m.find()) {
ssb.setSpan(new StyleSpan(Typeface.BOLD), m.start(), m.end(), 0);
ssb.setSpan(new ForegroundColorSpan(colorError), m.start(), m.end(), 0);
int start = ssb.length() - personal.length();
ssb.setSpan(new StyleSpan(Typeface.BOLD), start + m.start(), start + m.end(), 0);
ssb.setSpan(new ForegroundColorSpan(colorError), start + m.start(), start + m.end(), 0);
}
if (full) {