Small fix

This commit is contained in:
M66B 2023-08-23 09:54:46 +02:00
parent cbbc1a3065
commit 56c470f03f
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -136,7 +137,8 @@ public class FragmentDialogSelectIdentity extends FragmentDialogBase {
Integer color = (identity.color == null ? identity.accountColor : identity.color);
vwColor.setBackgroundColor(color == null ? Color.TRANSPARENT : color);
tv.setText(identity.getDisplayName());
String name = identity.getDisplayName();
tv.setText(TextUtils.isEmpty(name) ? identity.email : name);
}
@Override