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,10 +2573,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
|
|
||||||
Matcher m = Helper.EMAIL_ADDRESS.matcher(personal);
|
Matcher m = Helper.EMAIL_ADDRESS.matcher(personal);
|
||||||
while (m.find()) {
|
while (m.find()) {
|
||||||
|
String e = personal.substring(m.start(), m.end());
|
||||||
|
if (!e.equalsIgnoreCase(email)) {
|
||||||
int start = ssb.length() - personal.length();
|
int start = ssb.length() - personal.length();
|
||||||
ssb.setSpan(new StyleSpan(Typeface.BOLD), start + m.start(), start + m.end(), 0);
|
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);
|
ssb.setSpan(new ForegroundColorSpan(colorError), start + m.start(), start + m.end(), 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (full) {
|
if (full) {
|
||||||
ssb.append(" <");
|
ssb.append(" <");
|
||||||
|
|
Loading…
Reference in New Issue