diff options
author | 2014-04-16 15:40:17 +0900 | |
---|---|---|
committer | 2014-04-16 17:02:08 +0900 | |
commit | 3aba6263f08e755b55ebcf559673b21b6d46facb (patch) | |
tree | 8ab663423d6704c142826a992cb3ebecffbcfdb8 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 1ee443d848f7e8ce8b3696e4d6e4a6afa1ce2d47 (diff) | |
download | latinime-3aba6263f08e755b55ebcf559673b21b6d46facb.tar.gz latinime-3aba6263f08e755b55ebcf559673b21b6d46facb.tar.xz latinime-3aba6263f08e755b55ebcf559673b21b6d46facb.zip |
Restart suggestions when restarting input
Bug: 6851364
Change-Id: I3052924053f37f56c9c3953051aa1b22224a2b2e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 4 |
1 files changed, 4 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 491d98074..f1f906042 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1284,6 +1284,10 @@ public final class InputLogic { || !settingsValues.mSpacingAndPunctuations.mCurrentLanguageHasSpaces // If no suggestions are requested, don't try restarting suggestions. || !settingsValues.isSuggestionsRequested() + // If we are currently in a batch input, we must not resume suggestions, or the result + // of the batch input will replace the new composition. This may happen in the corner case + // that the app moves the cursor on its own accord during a batch input. + || mInputLogicHandler.isInBatchInput() // If the cursor is not touching a word, or if there is a selection, return right away. || mConnection.hasSelection() // If we don't know the cursor location, return. |