diff options
author | 2013-06-26 07:36:43 +0000 | |
---|---|---|
committer | 2013-06-26 07:36:44 +0000 | |
commit | 173f74bb18016ccab3e5fad4c86c5201add41c30 (patch) | |
tree | e7849e2b88fc7043755b148b248cf5c779978eff /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | c0d7a376e2d34e998f3791ea8b1e90d408b8e2e3 (diff) | |
parent | 7fcf304c974d52a816b3375f22e714798fe308e5 (diff) | |
download | latinime-173f74bb18016ccab3e5fad4c86c5201add41c30.tar.gz latinime-173f74bb18016ccab3e5fad4c86c5201add41c30.tar.xz latinime-173f74bb18016ccab3e5fad4c86c5201add41c30.zip |
Merge "Fixing follow-up to I548d899b"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 6fcac9a65..9ef273918 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -968,6 +968,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // text, but that is probably too expensive to do, so we decided to leave things // as is. resetEntireInputState(newSelStart); + } else { + // resetEntireInputState calls resetCachesUponCursorMove, but with the second + // argument as true. But in all cases where we don't reset the entire input state, + // we still want to tell the rich input connection about the new cursor position so + // that it can update its caches. + mConnection.resetCachesUponCursorMove(newSelStart, + false /* shouldFinishComposition */); } // We moved the cursor. If we are touching a word, we need to resume suggestion, @@ -975,7 +982,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (isSuggestionsStripVisible()) { mHandler.postResumeSuggestions(); } - mConnection.userMovedCursor(newSelEnd); // Reset the last recapitalization. mRecapitalizeStatus.deactivate(); mKeyboardSwitcher.updateShiftState(); |