aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-06-02 20:06:46 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-06-02 20:06:46 -0700
commitef827a99d073eed0a92271b6fe715b0868e1bb78 (patch)
treebe03f9253a30c1d91e0013ef4c6afed03d3177c3 /java
parent173ac0c60d9878a56fea1e74be4cc07cc87df13d (diff)
parenta2f3f17de6a70e25293861b02d7a5ecf79c47907 (diff)
downloadlatinime-ef827a99d073eed0a92271b6fe715b0868e1bb78.tar.gz
latinime-ef827a99d073eed0a92271b6fe715b0868e1bb78.tar.xz
latinime-ef827a99d073eed0a92271b6fe715b0868e1bb78.zip
am a2f3f17d: Merge "Compare scrubbed strings when uncommitting LogUnits"
* commit 'a2f3f17de6a70e25293861b02d7a5ecf79c47907': Compare scrubbed strings when uncommitting LogUnits
Diffstat (limited to '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;
}
}