diff options
author | 2014-07-01 07:46:19 +0000 | |
---|---|---|
committer | 2014-07-01 07:46:19 +0000 | |
commit | 64a792db2e9da62ac87053c982272ae820c80244 (patch) | |
tree | 816394321d6a38f8ddcebb330db7af14968c89a3 /java/src/com/android/inputmethod/latin/inputlogic | |
parent | dca55d7c972d3753078d18d8a611470c239a94b4 (diff) | |
parent | 292deb632cbab232334190e68d29184094d6d51b (diff) | |
download | latinime-64a792db2e9da62ac87053c982272ae820c80244.tar.gz latinime-64a792db2e9da62ac87053c982272ae820c80244.tar.xz latinime-64a792db2e9da62ac87053c982272ae820c80244.zip |
am 292deb63: [SD7] Actually check for script.
* commit '292deb632cbab232334190e68d29184094d6d51b':
[SD7] Actually check for script.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index b9a87c921..7719c6db6 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1288,9 +1288,14 @@ public final class InputLogic { return; } final TextRange range = mConnection.getWordRangeAtCursor( - settingsValues.mSpacingAndPunctuations.mSortedWordSeparators); + settingsValues.mSpacingAndPunctuations.mSortedWordSeparators, + currentKeyboardScriptId); if (null == range) return; // Happens if we don't have an input connection at all - if (range.length() <= 0) return; // Race condition. No text to resume on, so bail out. + if (range.length() <= 0) { + // Race condition, or touching a word in a non-supported script. + mLatinIME.setNeutralSuggestionStrip(); + return; + } // If for some strange reason (editor bug or so) we measure the text before the cursor as // longer than what the entire text is supposed to be, the safe thing to do is bail out. if (range.mHasUrlSpans) return; // If there are links, we don't resume suggestions. Making |