mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Fixed highlighting email addresses in names
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user