diff options
author | 2014-01-09 14:09:26 +0900 | |
---|---|---|
committer | 2014-01-10 16:05:02 +0900 | |
commit | ecf46df22683b997311ba77b34b33dffa8be43c0 (patch) | |
tree | f8f63ab117bded2c7c749d5cbf1dfd18244ac831 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 6fbe83be7af6b15df3ed915b408c8179ca01c0cd (diff) | |
download | latinime-ecf46df22683b997311ba77b34b33dffa8be43c0.tar.gz latinime-ecf46df22683b997311ba77b34b33dffa8be43c0.tar.xz latinime-ecf46df22683b997311ba77b34b33dffa8be43c0.zip |
[IL54] Add a mirror method to fix the cursor pos estimate
This just mirrors what InputLogic#tryFixLyingCursorPosition
is doing. That method will go away in the next change.
Change-Id: Ifa2827dbc1f1d20e2c642d6f2d23514a01ed9203
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 92b6a8544..de10a290d 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -133,6 +133,7 @@ public final class InputLogic { mLastSelectionEnd = editorInfo.initialSelEnd; // In some cases (namely, after rotation of the device) editorInfo.initialSelStart is lying // so we try using some heuristics to find out about these and fix them. + mConnection.tryFixLyingCursorPosition(); tryFixLyingCursorPosition(); mInputLogicHandler = new InputLogicHandler(mLatinIME, this); } @@ -1750,6 +1751,7 @@ public final class InputLogic { // If remainingTries is 0, we should stop waiting for new tries, but it's still // better to load the keyboard (less things will be broken). } + mConnection.tryFixLyingCursorPosition(); tryFixLyingCursorPosition(); keyboardSwitcher.loadKeyboard(getCurrentInputEditorInfo(), settingsValues); if (tryResumeSuggestions) { |