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

Commit 3df8bcb7 authored by Jean Chalard's avatar Jean Chalard
Browse files

Revert "Display predictions when the cursor is moved after a word."

This change is lacking some comments and break some unit tests.
It needs more work.

This reverts commit 38d31a5e.

Change-Id: I675854fd0729f2d01b7751e35c6d0117f4f88993
parent 38d31a5e
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -1256,14 +1256,7 @@ public final class InputLogic {
        // If we don't know the cursor location, return.
        if (mConnection.getExpectedSelectionStart() < 0) return;
        final int expectedCursorPosition = mConnection.getExpectedSelectionStart();
        if (!mConnection.isCursorTouchingWord(settingsValues.mSpacingAndPunctuations)) {
            // Show predictions.
            mWordComposer.setCapitalizedModeAndPreviousWordAtStartComposingTime(
                    WordComposer.CAPS_MODE_OFF,
                    getNthPreviousWordForSuggestion(settingsValues.mSpacingAndPunctuations, 1));
            mLatinIME.mHandler.postUpdateSuggestionStrip();
            return;
        }
        if (!mConnection.isCursorTouchingWord(settingsValues.mSpacingAndPunctuations)) return;
        final TextRange range = mConnection.getWordRangeAtCursor(
                settingsValues.mSpacingAndPunctuations.mSortedWordSeparators,
                0 /* additionalPrecedingWordsCount */);