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

Commit 1b986cc4 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug with manual pick then dotcom key"

parents 5b7f50b1 12d67e6d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1326,10 +1326,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
            // Not a tld: do nothing.
            return text;
        }
        // We have a TLD (or something that looks like this): make sure we don't add
        // a space even if currently in phantom mode.
        mSpaceState = SPACE_STATE_NONE;
        final CharSequence lastOne = ic.getTextBeforeCursor(1, 0);
        if (lastOne != null && lastOne.length() == 1
                && lastOne.charAt(0) == Keyboard.CODE_PERIOD) {
            mSpaceState = SPACE_STATE_NONE;
            return text.subSequence(1, text.length());
        } else {
            return text;