aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-04-13 12:58:46 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-13 12:58:46 +0000
commitf83d443d8d5e2c43024904125dc8bcd9e173782e (patch)
tree116ee96c6e5e93a6526a6319472415ecb08fa95c /java/src/com/android/inputmethod/latin/LatinIME.java
parent3b6025a190160d8e387f9691af64314e7bbda7a1 (diff)
parentda498229f41b828209765774a6f7f8f1ad5f30c3 (diff)
downloadlatinime-f83d443d8d5e2c43024904125dc8bcd9e173782e.tar.gz
latinime-f83d443d8d5e2c43024904125dc8bcd9e173782e.tar.xz
latinime-f83d443d8d5e2c43024904125dc8bcd9e173782e.zip
am da498229: Merge "Plumbing for ProductionFlag.USES_CURSOR_ANCHOR_MONITOR"
* commit 'da498229f41b828209765774a6f7f8f1ad5f30c3': 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.java14
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