1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Small improvement

This commit is contained in:
M66B 2021-06-23 09:26:01 +02:00
parent 58fe17a9b4
commit 336192f1c7

View file

@ -1849,7 +1849,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
String personal = address.getPersonal();
if (TextUtils.isEmpty(personal)) {
if (email != null) {
if (!TextUtils.isEmpty(email)) {
int start = ssb.length();
ssb.append(email);
ssb.setSpan(new ForegroundColorSpan(textColorLink), start, ssb.length(), 0);
@ -1857,7 +1857,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else {
if (full) {
ssb.append(personal).append(" <");
if (email != null) {
if (!TextUtils.isEmpty(email)) {
int start = ssb.length();
ssb.append(email);
ssb.setSpan(new ForegroundColorSpan(textColorLink), start, ssb.length(), 0);