aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-03 07:07:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-03 07:07:14 +0000
commit80fa64e66bd6ecfff783aee3e49df326f352c264 (patch)
tree2b805ca111ecc3bbb5abab34591bf4bf3c353955 /java/src
parent5d9be8039cf2321f42c3206594921430c06f7642 (diff)
parent9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36 (diff)
downloadlatinime-80fa64e66bd6ecfff783aee3e49df326f352c264.tar.gz
latinime-80fa64e66bd6ecfff783aee3e49df326f352c264.tar.xz
latinime-80fa64e66bd6ecfff783aee3e49df326f352c264.zip
Merge "Don't resume suggestions if suggestions are not requested."
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index 1bc67b2a0..f53183f37 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -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.