aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Constants.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-09-20 18:01:32 +0900
committerJean Chalard <jchalard@google.com>2013-09-20 22:21:28 +0900
commitf1d8aa46f9172c2d8864d0d2161aa8220d036cc9 (patch)
treeb66b81c7fd6e8ed394c18ebbd204a2bd81875fe9 /java/src/com/android/inputmethod/latin/Constants.java
parent3de1aca289d9fa1173b61cac0a93537d72f41c4b (diff)
downloadlatinime-f1d8aa46f9172c2d8864d0d2161aa8220d036cc9.tar.gz
latinime-f1d8aa46f9172c2d8864d0d2161aa8220d036cc9.tar.xz
latinime-f1d8aa46f9172c2d8864d0d2161aa8220d036cc9.zip
Detect cases where rotation messes with initialization
...and do a best effort to fix it. Bug: 10323080 Bug: 10252066 Change-Id: Icb3c9fe85005406bdfce0b7bb143ba0a910a0ddb
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Constants.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Constants.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/Constants.java b/java/src/com/android/inputmethod/latin/Constants.java
index 28d9e8652..11c22109b 100644
--- a/java/src/com/android/inputmethod/latin/Constants.java
+++ b/java/src/com/android/inputmethod/latin/Constants.java
@@ -138,6 +138,9 @@ public final class Constants {
public static final int SPELL_CHECKER_COORDINATE = -3;
public static final int EXTERNAL_KEYBOARD_COORDINATE = -4;
+ // A hint on how many characters to cache from the TextView. A good value of this is given by
+ // how many characters we need to be able to almost always find the caps mode.
+ public static final int EDITOR_CONTENTS_CACHE_SIZE = 1024;
// Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
public static final int DICTIONARY_MAX_WORD_LENGTH = 48;