mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Label logUnits after LatinImeOnEndBatchInput
Previously only a commitText would cause a LogUnit to be labeled with the word that the data generates. In the case of gestured text, this information is available when LatinIME#onEndBatchInput is called. Labeling the LogUnit at this time means that the Log will have labeled words even if stop() is called before commit. Change-Id: Idb2f99a9c159a1b1aa00448a2ecddeca6c351c3e
This commit is contained in:
parent
3970352ea9
commit
fe0529714e
@ -1826,6 +1826,9 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||
public static void latinIME_onEndBatchInput(final CharSequence enteredText,
|
||||
final int enteredWordPos, final SuggestedWords suggestedWords) {
|
||||
final ResearchLogger researchLogger = getInstance();
|
||||
if (!TextUtils.isEmpty(enteredText) && hasLetters(enteredText.toString())) {
|
||||
researchLogger.mCurrentLogUnit.setWord(enteredText.toString());
|
||||
}
|
||||
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_ONENDBATCHINPUT, enteredText,
|
||||
enteredWordPos);
|
||||
researchLogger.mCurrentLogUnit.initializeSuggestions(suggestedWords);
|
||||
|
Loading…
Reference in New Issue
Block a user