mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Add batchMode field to PickSuggestionManually"
This commit is contained in:
commit
04de6802cc
@ -1403,7 +1403,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||||||
*/
|
*/
|
||||||
private static final LogStatement LOGSTATEMENT_LATINIME_PICKSUGGESTIONMANUALLY =
|
private static final LogStatement LOGSTATEMENT_LATINIME_PICKSUGGESTIONMANUALLY =
|
||||||
new LogStatement("LatinIMEPickSuggestionManually", true, false, "replacedWord", "index",
|
new LogStatement("LatinIMEPickSuggestionManually", true, false, "replacedWord", "index",
|
||||||
"suggestion", "x", "y");
|
"suggestion", "x", "y", "isBatchMode");
|
||||||
public static void latinIME_pickSuggestionManually(final String replacedWord,
|
public static void latinIME_pickSuggestionManually(final String replacedWord,
|
||||||
final int index, final String suggestion, final boolean isBatchMode) {
|
final int index, final String suggestion, final boolean isBatchMode) {
|
||||||
final ResearchLogger researchLogger = getInstance();
|
final ResearchLogger researchLogger = getInstance();
|
||||||
@ -1416,7 +1416,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||||||
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_PICKSUGGESTIONMANUALLY,
|
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_PICKSUGGESTIONMANUALLY,
|
||||||
scrubDigitsFromString(replacedWord), index,
|
scrubDigitsFromString(replacedWord), index,
|
||||||
suggestion == null ? null : scrubbedWord, Constants.SUGGESTION_STRIP_COORDINATE,
|
suggestion == null ? null : scrubbedWord, Constants.SUGGESTION_STRIP_COORDINATE,
|
||||||
Constants.SUGGESTION_STRIP_COORDINATE);
|
Constants.SUGGESTION_STRIP_COORDINATE, isBatchMode);
|
||||||
researchLogger.commitCurrentLogUnitAsWord(scrubbedWord, Long.MAX_VALUE, isBatchMode);
|
researchLogger.commitCurrentLogUnitAsWord(scrubbedWord, Long.MAX_VALUE, isBatchMode);
|
||||||
researchLogger.mStatistics.recordManualSuggestion(SystemClock.uptimeMillis());
|
researchLogger.mStatistics.recordManualSuggestion(SystemClock.uptimeMillis());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user