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

Commit 30b8004b authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a bug where a space would not be inserted before a gesture

Bug: 8583675
Change-Id: I14924fef5663f48481994c02c56be45f9f85be65
parent 4f430763
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1540,7 +1540,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
            }
        } else {
            final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor();
            if (mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) {
            if (Character.isLetter(codePointBeforeCursor)
                    || mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) {
                mSpaceState = SPACE_STATE_PHANTOM;
            }
        }