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

Commit 7716f89f authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

am 1b986cc4: Merge "Fix a bug with manual pick then dotcom key"

* commit '1b986cc4':
  Fix a bug with manual pick then dotcom key
parents 239f1f29 1b986cc4
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;