[Rlog59d] Pass separatorString through revertCommit
Change-Id: I5ef20476318979f99f543f9300cf6198d18f6244main
parent
343a852cd9
commit
31156c816e
|
@ -2312,7 +2312,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
}
|
}
|
||||||
if (ProductionFlag.IS_EXPERIMENTAL) {
|
if (ProductionFlag.IS_EXPERIMENTAL) {
|
||||||
ResearchLogger.latinIME_revertCommit(committedWord, originallyTypedWord,
|
ResearchLogger.latinIME_revertCommit(committedWord, originallyTypedWord,
|
||||||
mWordComposer.isBatchMode());
|
mWordComposer.isBatchMode(), mLastComposedWord.mSeparatorString);
|
||||||
ResearchLogger.getInstance().uncommitCurrentLogUnit(committedWord,
|
ResearchLogger.getInstance().uncommitCurrentLogUnit(committedWord,
|
||||||
true /* dumpCurrentLogUnit */);
|
true /* dumpCurrentLogUnit */);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1294,9 +1294,10 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
*/
|
*/
|
||||||
private static final LogStatement LOGSTATEMENT_LATINIME_REVERTCOMMIT =
|
private static final LogStatement LOGSTATEMENT_LATINIME_REVERTCOMMIT =
|
||||||
new LogStatement("LatinIMERevertCommit", true, false, "committedWord",
|
new LogStatement("LatinIMERevertCommit", true, false, "committedWord",
|
||||||
"originallyTypedWord");
|
"originallyTypedWord", "separatorString");
|
||||||
public static void latinIME_revertCommit(final String committedWord,
|
public static void latinIME_revertCommit(final String committedWord,
|
||||||
final String originallyTypedWord, final boolean isBatchMode) {
|
final String originallyTypedWord, final boolean isBatchMode,
|
||||||
|
final String separatorString) {
|
||||||
final ResearchLogger researchLogger = getInstance();
|
final ResearchLogger researchLogger = getInstance();
|
||||||
// TODO: Verify that mCurrentLogUnit has been restored and contains the reverted word.
|
// TODO: Verify that mCurrentLogUnit has been restored and contains the reverted word.
|
||||||
final LogUnit logUnit;
|
final LogUnit logUnit;
|
||||||
|
@ -1311,7 +1312,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
researchLogger.enqueueEvent(logUnit != null ? logUnit : researchLogger.mCurrentLogUnit,
|
researchLogger.enqueueEvent(logUnit != null ? logUnit : researchLogger.mCurrentLogUnit,
|
||||||
LOGSTATEMENT_LATINIME_REVERTCOMMIT, committedWord, originallyTypedWord);
|
LOGSTATEMENT_LATINIME_REVERTCOMMIT, committedWord, originallyTypedWord,
|
||||||
|
separatorString);
|
||||||
researchLogger.mStatistics.recordRevertCommit(SystemClock.uptimeMillis());
|
researchLogger.mStatistics.recordRevertCommit(SystemClock.uptimeMillis());
|
||||||
researchLogger.commitCurrentLogUnitAsWord(originallyTypedWord, Long.MAX_VALUE, isBatchMode);
|
researchLogger.commitCurrentLogUnitAsWord(originallyTypedWord, Long.MAX_VALUE, isBatchMode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue