aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-02-21 23:41:42 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-21 23:41:42 -0800
commit1dfdc8056c93a2ea3e26f821af738ce1504af714 (patch)
tree352c464d1b0b1478c74d19e9c04fd72fc669d681 /java/src/com/android/inputmethod/latin/LastComposedWord.java
parent8fe892945a898ee2235b8c4367eb42730db4c8d9 (diff)
parentcf9d92629cae88273805eaf7984fcfdd8afd11f5 (diff)
downloadlatinime-1dfdc8056c93a2ea3e26f821af738ce1504af714.tar.gz
latinime-1dfdc8056c93a2ea3e26f821af738ce1504af714.tar.xz
latinime-1dfdc8056c93a2ea3e26f821af738ce1504af714.zip
Merge "Give LastComposedWord knowledge of the committed word (A1)"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index f34cb5ff9..37be03c3e 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -44,7 +44,7 @@ public class LastComposedWord {
public final int[] mXCoordinates;
public final int[] mYCoordinates;
public final String mTypedWord;
- public final String mAutoCorrection;
+ public final String mCommittedWord;
private boolean mActive;
@@ -54,12 +54,12 @@ public class LastComposedWord {
// 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<int[]> codes, final int[] xCoordinates,
- final int[] yCoordinates, final String typedWord, final String autoCorrection) {
+ final int[] yCoordinates, final String typedWord, final String committedWord) {
mCodes = codes;
mXCoordinates = xCoordinates;
mYCoordinates = yCoordinates;
mTypedWord = typedWord;
- mAutoCorrection = autoCorrection;
+ mCommittedWord = committedWord;
mActive = true;
}
@@ -68,7 +68,7 @@ public class LastComposedWord {
}
public boolean canCancelAutoCorrect() {
- return mActive && !TextUtils.isEmpty(mAutoCorrection)
- && !TextUtils.equals(mTypedWord, mAutoCorrection);
+ return mActive && !TextUtils.isEmpty(mCommittedWord)
+ && !TextUtils.equals(mTypedWord, mCommittedWord);
}
}