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

Commit bb514f71 authored by GoneUp's avatar GoneUp
Browse files

Just convert the actual address and not perform wild guesses #1950

parent 92196c01
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -229,14 +229,9 @@ public class RecipientSelectView extends TokenCompleteTextView<Recipient> implem
    @Override
    public void performCompletion() {
        if (getListSelection() == ListView.INVALID_POSITION && enoughToFilter()) {
            Object bestGuess;
            if (getAdapter().getCount() > 0) {
                bestGuess = getAdapter().getItem(0);
            } else {
                bestGuess = defaultObject(currentCompletionText());
            }
            if (bestGuess != null) {
                replaceText(convertSelectionToString(bestGuess));
            Object recipientText = defaultObject(currentCompletionText());
            if (recipientText != null) {
                replaceText(convertSelectionToString(recipientText));
            }
        } else {
            super.performCompletion();