Don't ask for surrounding characters for each keypress
Bug: 6464226 Change-Id: I03745bbcc21e5ec6ca57fa1257bf21c0cd26391a
This commit is contained in:
parent
67b2c58404
commit
736b109e16
1 changed files with 12 additions and 14 deletions
|
@ -1480,8 +1480,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
|
||||
if ((isAlphabet(primaryCode)
|
||||
|| mSettingsValues.isSymbolExcludedFromWordSeparators(primaryCode))
|
||||
&& isSuggestionsRequested() && !isCursorTouchingWord()) {
|
||||
if (!isComposingWord) {
|
||||
&& isSuggestionsRequested() && !isComposingWord && !isCursorTouchingWord()) {
|
||||
// Reset entirely the composing state anyway, then start composing a new word unless
|
||||
// the character is a single quote. The idea here is, single quote is not a
|
||||
// separator and it should be treated as a normal character, except in the first
|
||||
|
@ -1494,7 +1493,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
resetComposingState(false /* alsoResetLastComposedWord */);
|
||||
clearSuggestions();
|
||||
}
|
||||
}
|
||||
if (isComposingWord) {
|
||||
mWordComposer.add(
|
||||
primaryCode, x, y, mKeyboardSwitcher.getKeyboardView().getKeyDetector());
|
||||
|
|
Loading…
Reference in a new issue