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: I2504df8eb47ee77e5f46bac34a8450636c03fd9fmain
parent
73d00e68d8
commit
189be5196a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue