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:56:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-04-13 12:56:43 +0000
commitda498229f41b828209765774a6f7f8f1ad5f30c3 (patch)
tree116ee96c6e5e93a6526a6319472415ecb08fa95c /java/src/com/android/inputmethod/latin/LatinIME.java
parent4f4770cbf00232c388ba6d632edb1566646dec1f (diff)
parentfab4ce43f8e68bba7645e6fb71ed7cd300b68119 (diff)
downloadlatinime-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.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