Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02498ee9 authored by James Downs's avatar James Downs
Browse files

Added a check for showing correspondent name to RecipientSelectView

parent d761721e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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<Recipient> implem
        }

        public String getDisplayNameOrAddress() {
            String displayName = getDisplayName();
            final String displayName = K9.showCorrespondentNames() ? getDisplayName() : null;
    
            if (displayName != null) {
                return displayName;
            }