aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/ResearchLogger.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-06-03 03:03:57 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-06-03 03:03:58 +0000
commita2f3f17de6a70e25293861b02d7a5ecf79c47907 (patch)
tree71ab8c5ee941d9a63d170178bdf96fe0cf1e19fe /java/src/com/android/inputmethod/research/ResearchLogger.java
parent743302888b25235683c61aade88498d224d0c170 (diff)
parentf07024e0fa0854ae83e28ce2b187d687a7527b98 (diff)
downloadlatinime-a2f3f17de6a70e25293861b02d7a5ecf79c47907.tar.gz
latinime-a2f3f17de6a70e25293861b02d7a5ecf79c47907.tar.xz
latinime-a2f3f17de6a70e25293861b02d7a5ecf79c47907.zip
Merge "Compare scrubbed strings when uncommitting LogUnits"
Diffstat (limited to 'java/src/com/android/inputmethod/research/ResearchLogger.java')
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLogger.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java
index d17d6d1be..39236dab0 100644
--- a/java/src/com/android/inputmethod/research/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/research/ResearchLogger.java
@@ -863,7 +863,10 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
// Check that expected word matches.
if (oldLogUnit != null) {
final String oldLogUnitWords = oldLogUnit.getWordsAsString();
- if (oldLogUnitWords != null && !oldLogUnitWords.equals(expectedWord)) {
+ // Because the word is stored in the LogUnit with digits scrubbed, the comparison must
+ // be made on a scrubbed version of the expectedWord as well.
+ if (oldLogUnitWords != null && !oldLogUnitWords.equals(
+ scrubDigitsFromString(expectedWord))) {
return;
}
}