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:
Jean Chalard 2014-02-10 06:42:36 -08:00 committed by Android Git Automerger
commit 342cd1a0b1

View file

@ -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 */);