aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-23 20:19:46 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-23 20:19:46 -0700
commit6d6c070eba85da2c213c1454ff1d6f3dc49a81d9 (patch)
treefad92edfb0bbfb7f991b1d3e8eb014eacff03dbe /java/src/com/android/inputmethod/latin/LastComposedWord.java
parent76e73c0c90958cc53aff51e2e6aa87845feb5dac (diff)
parent925212ff4b3d6ff4182a94a133c0e4a4f23dd6aa (diff)
downloadlatinime-6d6c070eba85da2c213c1454ff1d6f3dc49a81d9.tar.gz
latinime-6d6c070eba85da2c213c1454ff1d6f3dc49a81d9.tar.xz
latinime-6d6c070eba85da2c213c1454ff1d6f3dc49a81d9.zip
am 925212ff: am c54d558e: Cancel adding user history bigram when autocorrection is cancelled
* commit '925212ff4b3d6ff4182a94a133c0e4a4f23dd6aa': Cancel adding user history bigram when autocorrection is cancelled
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index af0ef4b37..4e1f5fe92 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -46,17 +46,18 @@ public class LastComposedWord {
public final String mTypedWord;
public final String mCommittedWord;
public final int mSeparatorCode;
+ public final CharSequence mPrevWord;
private boolean mActive;
public static final LastComposedWord NOT_A_COMPOSED_WORD =
- new LastComposedWord(null, null, null, "", "", NOT_A_SEPARATOR);
+ new LastComposedWord(null, null, null, "", "", NOT_A_SEPARATOR, null);
// 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 int[] xCoordinates,
final int[] yCoordinates, final String typedWord, final String committedWord,
- final int separatorCode) {
+ final int separatorCode, final CharSequence prevWord) {
mPrimaryKeyCodes = primaryKeyCodes;
mXCoordinates = xCoordinates;
mYCoordinates = yCoordinates;
@@ -64,6 +65,7 @@ public class LastComposedWord {
mCommittedWord = committedWord;
mSeparatorCode = separatorCode;
mActive = true;
+ mPrevWord = prevWord;
}
public void deactivate() {