aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-01-17 03:19:16 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-01-17 03:19:16 -0800
commit5df7f0c8a2f902226c80c7bffb00fff6cc206118 (patch)
treeb0a44712443c99b5204f7605e1a4d31f5c4ede48 /java/src/com/android/inputmethod/latin/LastComposedWord.java
parentbf5f911f8be703cfe13769c527b906f9a22a761c (diff)
parentc665cbee7f136ea3cf334262f8dc1e7621f2004f (diff)
downloadlatinime-5df7f0c8a2f902226c80c7bffb00fff6cc206118.tar.gz
latinime-5df7f0c8a2f902226c80c7bffb00fff6cc206118.tar.xz
latinime-5df7f0c8a2f902226c80c7bffb00fff6cc206118.zip
am c665cbee: Merge "Forward the capitalized mode to the positional info (D1)"
* commit 'c665cbee7f136ea3cf334262f8dc1e7621f2004f': Forward the capitalized mode to the positional info (D1)
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index 488a6fcf2..a4019e906 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -45,19 +45,21 @@ public final class LastComposedWord {
public final String mCommittedWord;
public final String mSeparatorString;
public final String mPrevWord;
+ public final int mCapitalizedMode;
public final InputPointers mInputPointers =
new InputPointers(Constants.Dictionary.MAX_WORD_LENGTH);
private boolean mActive;
public static final LastComposedWord NOT_A_COMPOSED_WORD =
- new LastComposedWord(null, null, "", "", NOT_A_SEPARATOR, null);
+ new LastComposedWord(null, null, "", "", NOT_A_SEPARATOR, null,
+ WordComposer.CAPS_MODE_OFF);
// Warning: this is using the passed objects as is and fully expects them to be
// immutable. Do not fiddle with their contents after you passed them to this constructor.
public LastComposedWord(final int[] primaryKeyCodes, final InputPointers inputPointers,
- final String typedWord, final String committedWord,
- final String separatorString, final String prevWord) {
+ final String typedWord, final String committedWord, final String separatorString,
+ final String prevWord, final int capitalizedMode) {
mPrimaryKeyCodes = primaryKeyCodes;
if (inputPointers != null) {
mInputPointers.copy(inputPointers);
@@ -67,6 +69,7 @@ public final class LastComposedWord {
mSeparatorString = separatorString;
mActive = true;
mPrevWord = prevWord;
+ mCapitalizedMode = capitalizedMode;
}
public void deactivate() {