diff options
author | 2014-01-09 17:27:33 +0900 | |
---|---|---|
committer | 2014-01-09 18:33:25 +0900 | |
commit | 494e2d6c17cdbf27615a2fbc02b12d2562bf7cd3 (patch) | |
tree | 4c671d08eee4fb755ead6a73ce3a680be9918d48 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | d7660c6f56a65b835ad178c2860f36d273655b14 (diff) | |
download | latinime-494e2d6c17cdbf27615a2fbc02b12d2562bf7cd3.tar.gz latinime-494e2d6c17cdbf27615a2fbc02b12d2562bf7cd3.tar.xz latinime-494e2d6c17cdbf27615a2fbc02b12d2562bf7cd3.zip |
Passing SpacingAndPunctuations to RichInputConnection.getNthPreviousWords
Change-Id: I174c50f509ed6998b755e1a712e7f6c0f82f4425
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index aadb65192..3984c197a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1396,7 +1396,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // word. If we are composing a word we should have the second word before the cursor // memorized, otherwise we should have the first. final String rereadPrevWord = mInputLogic.getNthPreviousWordForSuggestion( - currentSettings, mInputLogic.mWordComposer.isComposingWord() ? 2 : 1); + currentSettings.mSpacingAndPunctuations, + mInputLogic.mWordComposer.isComposingWord() ? 2 : 1); if (!TextUtils.equals(previousWord, rereadPrevWord)) { throw new RuntimeException("Unexpected previous word: " + previousWord + " <> " + rereadPrevWord); |