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

Commit 424f6ec2 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Continue swapping sentence separator and space

Bug: 3504990
Change-Id: I3de44e9d9adb0bcafa2e59685c4cdc257716b1d6
parent 662bb7c2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1627,7 +1627,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            return;
        }

        TextEntryState.acceptedSuggestion(suggestions.getWord(0), suggestion);
        // If this is a punctuation, apply it through the normal key press
        if (suggestion.length() == 1 && (isWordSeparator(suggestion.charAt(0))
                || isSuggestedPunctuation(suggestion.charAt(0)))) {
+1 −1
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ public class TextEntryState {
            break;
        case ACCEPTED_DEFAULT:
        case SPACE_AFTER_PICKED:
        case PUNCTUATION_AFTER_ACCEPTED:
            if (isSpace) {
                setState(SPACE_AFTER_ACCEPTED);
            } else if (isSeparator) {
@@ -130,7 +131,6 @@ public class TextEntryState {
        case START:
        case UNKNOWN:
        case SPACE_AFTER_ACCEPTED:
        case PUNCTUATION_AFTER_ACCEPTED:
        case PUNCTUATION_AFTER_WORD:
            if (!isSpace && !isSeparator) {
                setState(IN_WORD);