am 3df8bcb7
: Revert "Display predictions when the cursor is moved after a word."
* commit '3df8bcb7a999c63c027faf527b5995dd0d8b40b2': Revert "Display predictions when the cursor is moved after a word."
This commit is contained in:
commit
342cd1a0b1
1 changed files with 1 additions and 8 deletions
|
@ -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 */);
|
||||
|
|
Loading…
Reference in a new issue