aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-03-25 17:25:06 -0700
committerKurt Partridge <kep@google.com>2013-03-26 16:46:43 -0700
commit189be5196a2823eca3a3d2a525e5cba638761018 (patch)
tree9a530b225f42ae01630e58c0562847e0775dfc57
parent73d00e68d8fcd64ce28fc5bed6881100a0fead9b (diff)
downloadlatinime-189be5196a2823eca3a3d2a525e5cba638761018.tar.gz
latinime-189be5196a2823eca3a3d2a525e5cba638761018.tar.xz
latinime-189be5196a2823eca3a3d2a525e5cba638761018.zip
Split LogUnits differently.
Previously an autocorrection caused a new LogUnit to be started, splitting off the previous LogUnit right at the autocorrection method time. This change causes the split to happen before the MotionEvents that led to the autocorrection being called. Change-Id: I2504df8eb47ee77e5f46bac34a8450636c03fd9f
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLogger.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java
index a38a226f0..1593e23f6 100644
--- a/java/src/com/android/inputmethod/research/ResearchLogger.java
+++ b/java/src/com/android/inputmethod/research/ResearchLogger.java
@@ -1634,8 +1634,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
final String scrubbedAutoCorrection = scrubDigitsFromString(autoCorrection);
final ResearchLogger researchLogger = getInstance();
researchLogger.mCurrentLogUnit.initializeSuggestions(suggestedWords);
- researchLogger.commitCurrentLogUnitAsWord(scrubbedAutoCorrection, Long.MAX_VALUE,
- isBatchMode);
+ researchLogger.onWordFinished(scrubbedAutoCorrection, isBatchMode);
// Add the autocorrection logStatement at the end of the logUnit for the committed word.
// We have to do this after calling commitCurrentLogUnitAsWord, because it may split the