From 72c5d328882976a0b4ae8b01a872ff5ae4d10547 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Mon, 24 Sep 2012 19:33:42 +0900 Subject: [PATCH] Fix a bug where the cursor pos wouldn't be tracked correctly This would cause Bug: 7208199 Change-Id: I8474985bfe349e1530b27bc98842937627bbe4e0 --- java/src/com/android/inputmethod/latin/LatinIME.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index b77eef412..00608c5c5 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -719,7 +719,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } - mConnection.resetCachesUponCursorMove(mLastSelectionStart); + mConnection.resetCachesUponCursorMove(editorInfo.initialSelStart); if (isDifferentTextField) { mainKeyboardView.closing();