Added option to display name or name/email address

This commit is contained in:
M66B
2019-02-08 08:27:17 +00:00
parent 79102e1ed9
commit 21b7313bf9
5 changed files with 51 additions and 7 deletions

View File

@@ -41,8 +41,8 @@ public class ContactInfo {
return bitmap;
}
String getDisplayName(boolean compact) {
if (compact && displayName != null)
String getDisplayName(boolean name_email) {
if (!name_email && displayName != null)
return displayName;
else if (displayName == null)
return (email == null ? "" : email);