am 80fa64e6: Merge "Don\'t resume suggestions if suggestions are not requested."

* commit '80fa64e66bd6ecfff783aee3e49df326f352c264':
  Don't resume suggestions if suggestions are not requested.
main
Jean Chalard 2014-02-03 06:10:00 -08:00 committed by Android Git Automerger
commit 3b2c4f5525
1 changed files with 2 additions and 0 deletions

View File

@ -1142,6 +1142,8 @@ public final class InputLogic {
// Recorrection is not supported in languages without spaces because we don't know
// how to segment them yet.
if (!settingsValues.mSpacingAndPunctuations.mCurrentLanguageHasSpaces) return;
// If no suggestions are requested, don't try restarting suggestions.
if (!settingsValues.isSuggestionsRequested()) return;
// If the cursor is not touching a word, or if there is a selection, return right away.
if (mConnection.hasSelection()) return;
// If we don't know the cursor location, return.