diff --git a/k9mail/src/main/java/com/fsck/k9/view/RecipientSelectView.java b/k9mail/src/main/java/com/fsck/k9/view/RecipientSelectView.java index 7985e6277..99c15db02 100644 --- a/k9mail/src/main/java/com/fsck/k9/view/RecipientSelectView.java +++ b/k9mail/src/main/java/com/fsck/k9/view/RecipientSelectView.java @@ -32,6 +32,7 @@ import android.widget.ListPopupWindow; import android.widget.ListView; import android.widget.TextView; +import com.fsck.k9.K9; import com.fsck.k9.R; import com.fsck.k9.activity.AlternateRecipientAdapter; import com.fsck.k9.activity.AlternateRecipientAdapter.AlternateRecipientListener; @@ -605,7 +606,8 @@ public class RecipientSelectView extends TokenCompleteTextView implem } public String getDisplayNameOrAddress() { - String displayName = getDisplayName(); + final String displayName = K9.showCorrespondentNames() ? getDisplayName() : null; + if (displayName != null) { return displayName; }