diff options
author | 2014-04-13 12:56:42 +0000 | |
---|---|---|
committer | 2014-04-13 12:56:43 +0000 | |
commit | da498229f41b828209765774a6f7f8f1ad5f30c3 (patch) | |
tree | 116ee96c6e5e93a6526a6319472415ecb08fa95c /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 4f4770cbf00232c388ba6d632edb1566646dec1f (diff) | |
parent | fab4ce43f8e68bba7645e6fb71ed7cd300b68119 (diff) | |
download | latinime-da498229f41b828209765774a6f7f8f1ad5f30c3.tar.gz latinime-da498229f41b828209765774a6f7f8f1ad5f30c3.tar.xz latinime-da498229f41b828209765774a6f7f8f1ad5f30c3.zip |
Merge "Plumbing for ProductionFlag.USES_CURSOR_ANCHOR_MONITOR"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 0594c68cc..059f36288 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -367,6 +367,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (latinIme != null) { executePendingImsCallback(latinIme, editorInfo, restarting); latinIme.onStartInputInternal(editorInfo, restarting); + if (ProductionFlag.USES_CURSOR_ANCHOR_MONITOR) { + // Currently we need to call this every time when the IME is attached to + // new application. + // TODO: Consider if we can do this automatically in the framework. + InputMethodServiceCompatUtils.setCursorAnchorMonitorMode(latinIme, 1); + } } } } @@ -931,6 +937,14 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mSubtypeState.currentSubtypeUsed(); } + @Override + public void onUpdateCursor(Rect rect) { + if (DEBUG) { + Log.i(TAG, "onUpdateCursor:" + rect.toShortString()); + } + super.onUpdateCursor(rect); + } + /** * This is called when the user has clicked on the extracted text view, * when running in fullscreen mode. The default implementation hides |