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

Unverified Commit 02d2e16f authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #3258 from markcapella/recipientSelectViewIssue

Recipient select view issue
parents 119144d2 02637517
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -207,6 +207,20 @@ public class RecipientSelectView extends TokenCompleteTextView<Recipient> implem
        }
    }

    /**
     * TokenCompleteTextView removes composing strings, and etc, but leaves internal composition
     * predictions partially constructed. Changing either/or the Selection or Candidate start/end
     * positions, forces the IMM to reset cleaner.
     */
    @Override
    protected void replaceText(CharSequence text) {
        super.replaceText(text);

        InputMethodManager imm = (InputMethodManager) getContext().getSystemService(
                Context.INPUT_METHOD_SERVICE);
        imm.updateSelection(this, getSelectionStart(), getSelectionEnd(), -1, -1);
    }

    private void displayKeyboard() {
        InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
        if (imm == null) {