mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
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 38d31a5e79c64e706e1698d2d24adb51c4ac53aa. Change-Id: I675854fd0729f2d01b7751e35c6d0117f4f88993
This commit is contained in:
parent
38d31a5e79
commit
3df8bcb7a9
@ -1256,14 +1256,7 @@ public final class InputLogic {
|
|||||||
// If we don't know the cursor location, return.
|
// If we don't know the cursor location, return.
|
||||||
if (mConnection.getExpectedSelectionStart() < 0) return;
|
if (mConnection.getExpectedSelectionStart() < 0) return;
|
||||||
final int expectedCursorPosition = mConnection.getExpectedSelectionStart();
|
final int expectedCursorPosition = mConnection.getExpectedSelectionStart();
|
||||||
if (!mConnection.isCursorTouchingWord(settingsValues.mSpacingAndPunctuations)) {
|
if (!mConnection.isCursorTouchingWord(settingsValues.mSpacingAndPunctuations)) return;
|
||||||
// Show predictions.
|
|
||||||
mWordComposer.setCapitalizedModeAndPreviousWordAtStartComposingTime(
|
|
||||||
WordComposer.CAPS_MODE_OFF,
|
|
||||||
getNthPreviousWordForSuggestion(settingsValues.mSpacingAndPunctuations, 1));
|
|
||||||
mLatinIME.mHandler.postUpdateSuggestionStrip();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final TextRange range = mConnection.getWordRangeAtCursor(
|
final TextRange range = mConnection.getWordRangeAtCursor(
|
||||||
settingsValues.mSpacingAndPunctuations.mSortedWordSeparators,
|
settingsValues.mSpacingAndPunctuations.mSortedWordSeparators,
|
||||||
0 /* additionalPrecedingWordsCount */);
|
0 /* additionalPrecedingWordsCount */);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user