mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[Rlog63] Log whether a manual suggestion is a prediction
Change-Id: Ia6f793611d4b18aecb1a635655af5edb639e1ecf
This commit is contained in:
parent
75e69753b7
commit
3338703a2f
@ -2122,7 +2122,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE);
|
||||
if (ProductionFlag.IS_EXPERIMENTAL) {
|
||||
ResearchLogger.latinIME_punctuationSuggestion(index, suggestion,
|
||||
false /* isBatchMode */);
|
||||
false /* isBatchMode */, suggestedWords.mIsPrediction);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -1163,12 +1163,13 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||
*/
|
||||
private static final LogStatement LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION =
|
||||
new LogStatement("LatinIMEPunctuationSuggestion", false, false, "index", "suggestion",
|
||||
"x", "y");
|
||||
"x", "y", "isPrediction");
|
||||
public static void latinIME_punctuationSuggestion(final int index, final String suggestion,
|
||||
final boolean isBatchMode) {
|
||||
final boolean isBatchMode, final boolean isPrediction) {
|
||||
final ResearchLogger researchLogger = getInstance();
|
||||
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION, index, suggestion,
|
||||
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE);
|
||||
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE,
|
||||
isPrediction);
|
||||
researchLogger.commitCurrentLogUnitAsWord(suggestion, Long.MAX_VALUE, isBatchMode);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user