aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-03 15:19:56 +0900
committerJean Chalard <jchalard@google.com>2014-02-03 15:20:45 +0900
commit9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36 (patch)
tree912907c2ea60f709ca7608ad41fefd90ebc55de2 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
parent4e6f72cb801df273ec649f56d6a5c0182063b332 (diff)
downloadlatinime-9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36.tar.gz
latinime-9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36.tar.xz
latinime-9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36.zip
Don't resume suggestions if suggestions are not requested.
Bug: 12832614 Change-Id: I6a9b6d128d7e0324ba59a43cf153a3b54e1d35bf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-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.