aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-27 09:43:45 +0000
committerJean Chalard <jchalard@google.com>2014-03-27 09:43:45 +0000
commit75715f7d9fb0b19c2ddaf73bf62148c7d19f0a99 (patch)
tree58284d3e5ec72576ec385445b09f28d3fba910d3 /java/src/com/android/inputmethod/latin/LastComposedWord.java
parent0de7a6d1a272d52a9544df1c693ae199ab5abc52 (diff)
downloadlatinime-75715f7d9fb0b19c2ddaf73bf62148c7d19f0a99.tar.gz
latinime-75715f7d9fb0b19c2ddaf73bf62148c7d19f0a99.tar.xz
latinime-75715f7d9fb0b19c2ddaf73bf62148c7d19f0a99.zip
Revert "[CB15] Remove a redundant variable."
This reverts commit 0de7a6d1a272d52a9544df1c693ae199ab5abc52. Change-Id: I327679b76a14cf9c3aec4b00b013b921408c32f9
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index a3b030626..2a16ab5ab 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -44,6 +44,7 @@ public final class LastComposedWord {
public static final String NOT_A_SEPARATOR = "";
+ public final int[] mPrimaryKeyCodes;
public final ArrayList<Event> mEvents;
public final String mTypedWord;
public final CharSequence mCommittedWord;
@@ -56,15 +57,16 @@ public final class LastComposedWord {
private boolean mActive;
public static final LastComposedWord NOT_A_COMPOSED_WORD =
- new LastComposedWord(new ArrayList<Event>(), null, "", "",
- NOT_A_SEPARATOR, null, WordComposer.CAPS_MODE_OFF);
+ new LastComposedWord(null, new ArrayList<Event>(), 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 ArrayList<Event> events,
+ public LastComposedWord(final int[] primaryKeyCodes, final ArrayList<Event> events,
final InputPointers inputPointers, final String typedWord,
final CharSequence committedWord, final String separatorString,
final String prevWord, final int capitalizedMode) {
+ mPrimaryKeyCodes = primaryKeyCodes;
if (inputPointers != null) {
mInputPointers.copy(inputPointers);
}