mirror of https://github.com/M66B/FairEmail.git
Fixed highlighting email addresses in names
This commit is contained in:
parent
9be5d1b385
commit
5431b622ea
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue