mirror of https://github.com/M66B/FairEmail.git
Skip warning for email in name when same email address
This commit is contained in:
parent
9f861fda42
commit
bc5f8f2e1f
|
@ -2573,9 +2573,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
Matcher m = Helper.EMAIL_ADDRESS.matcher(personal);
|
||||
while (m.find()) {
|
||||
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);
|
||||
String e = personal.substring(m.start(), m.end());
|
||||
if (!e.equalsIgnoreCase(email)) {
|
||||
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