From 485114905e931094230a9d5cfcc4fa5b7b1ef9be Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Wed, 9 Apr 2014 19:18:10 +0900 Subject: [PATCH] Add a new production flag for Cursor/Anchor monitor BUG: 13891796 Change-Id: I3565ca22aaf1d3cfce4f35999e2990b2df5157ef --- .../android/inputmethod/latin/define/ProductionFlag.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/define/ProductionFlag.java b/java/src/com/android/inputmethod/latin/define/ProductionFlag.java index e6fa1cdad..af899c040 100644 --- a/java/src/com/android/inputmethod/latin/define/ProductionFlag.java +++ b/java/src/com/android/inputmethod/latin/define/ProductionFlag.java @@ -30,6 +30,12 @@ public final class ProductionFlag { public static final boolean IS_HARDWARE_KEYBOARD_SUPPORTED = false; + // When true, enable {@link InputMethodService#onUpdateCursor} callback with + // {@link InputMethodService#setCursorAnchorMonitorMode}, which is not yet available in + // API level 19. Do not turn this on in production until the new API becomes publicly + // available. + public static final boolean USES_CURSOR_ANCHOR_MONITOR = false; + // Include all suggestions from all dictionaries in {@link SuggestedWords#mRawSuggestions}. public static final boolean INCLUDE_RAW_SUGGESTIONS = false; }