mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Small improvement
This commit is contained in:
parent
58fe17a9b4
commit
336192f1c7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue