diff options
author | 2013-06-02 20:06:46 -0700 | |
---|---|---|
committer | 2013-06-02 20:06:46 -0700 | |
commit | ef827a99d073eed0a92271b6fe715b0868e1bb78 (patch) | |
tree | be03f9253a30c1d91e0013ef4c6afed03d3177c3 /java | |
parent | 173ac0c60d9878a56fea1e74be4cc07cc87df13d (diff) | |
parent | a2f3f17de6a70e25293861b02d7a5ecf79c47907 (diff) | |
download | latinime-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.java | 5 |
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; } } |