am c4119c80: Merge "Uncommit an extra LogUnit"

* commit 'c4119c80630fa952e3b3c1c444b78b1842f45180':
  Uncommit an extra LogUnit
main
Kurt Partridge 2013-06-02 22:41:32 -07:00 committed by Android Git Automerger
commit 420532cc3a
1 changed files with 6 additions and 1 deletions

View File

@ -1588,7 +1588,12 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
private static final LogStatement LOGSTATEMENT_RICHINPUTCONNECTION_REVERTDOUBLESPACEPERIOD = private static final LogStatement LOGSTATEMENT_RICHINPUTCONNECTION_REVERTDOUBLESPACEPERIOD =
new LogStatement("RichInputConnectionRevertDoubleSpacePeriod", false, false); new LogStatement("RichInputConnectionRevertDoubleSpacePeriod", false, false);
public static void richInputConnection_revertDoubleSpacePeriod() { public static void richInputConnection_revertDoubleSpacePeriod() {
getInstance().enqueueEvent(LOGSTATEMENT_RICHINPUTCONNECTION_REVERTDOUBLESPACEPERIOD); final ResearchLogger researchLogger = getInstance();
// An extra LogUnit is added for the period; this is removed here because of the revert.
researchLogger.uncommitCurrentLogUnit(null, true /* dumpCurrentLogUnit */);
// TODO: This will probably be lost as the user backspaces further. Figure out how to put
// it into the right logUnit.
researchLogger.enqueueEvent(LOGSTATEMENT_RICHINPUTCONNECTION_REVERTDOUBLESPACEPERIOD);
} }
/** /**