diff options
author | 2013-08-14 09:41:48 +0000 | |
---|---|---|
committer | 2013-08-14 09:41:49 +0000 | |
commit | 5fd8b7ebd5c75e64a1288cb4b697ecaf7161b93c (patch) | |
tree | b43c407f57cf55987eda3bee5ffa43703b69e6c9 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | c3dc9021daca2108c1494d9cb24e9b56701bd9c4 (diff) | |
parent | af5fbe70ac9eff6979f444c3d938d28a0ec76ebd (diff) | |
download | latinime-5fd8b7ebd5c75e64a1288cb4b697ecaf7161b93c.tar.gz latinime-5fd8b7ebd5c75e64a1288cb4b697ecaf7161b93c.tar.xz latinime-5fd8b7ebd5c75e64a1288cb4b697ecaf7161b93c.zip |
Merge "Add looksValidForDictionaryInsertion"
Diffstat (limited to '')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 03a790f1a..fa9f4660a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1355,10 +1355,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } - private static boolean isAlphabet(final int code) { - return Character.isLetter(code); - } - private void onSettingsKeyPressed() { if (isShowingOptionDialog()) return; showSubtypeSelectorAndSettings(); @@ -2001,8 +1997,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // NOTE: isCursorTouchingWord() is a blocking IPC call, so it often takes several // dozen milliseconds. Avoid calling it as much as possible, since we are on the UI // thread here. - if (!isComposingWord && (isAlphabet(primaryCode) - || currentSettings.isWordConnector(primaryCode)) + if (!isComposingWord && currentSettings.isWordCodePoint(primaryCode) && currentSettings.isSuggestionsRequested(mDisplayOrientation) && !mConnection.isCursorTouchingWord(currentSettings)) { // Reset entirely the composing state anyway, then start composing a new word unless |