am 916c0a08
: Merge "[Rlog60] Log if a logUnit is uncommitted"
* commit '916c0a08c679b12922cbf32b659d1e32ca4dc6cd': [Rlog60] Log if a logUnit is uncommitted
This commit is contained in:
commit
9e472630a7
1 changed files with 3 additions and 0 deletions
|
@ -730,6 +730,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
}
|
||||
}
|
||||
|
||||
private static final LogStatement LOGSTATEMENT_UNCOMMIT_CURRENT_LOGUNIT =
|
||||
new LogStatement("UncommitCurrentLogUnit", false, false);
|
||||
public void uncommitCurrentLogUnit(final String expectedWord,
|
||||
final boolean dumpCurrentLogUnit) {
|
||||
// The user has deleted this word and returned to the previous. Check that the word in the
|
||||
|
@ -768,6 +770,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
if (mFeedbackLogBuffer != null) {
|
||||
mFeedbackLogBuffer.unshiftIn();
|
||||
}
|
||||
enqueueEvent(LOGSTATEMENT_UNCOMMIT_CURRENT_LOGUNIT);
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "uncommitCurrentLogUnit (dump=" + dumpCurrentLogUnit + ") back to "
|
||||
+ (mCurrentLogUnit.hasWord() ? ": '" + mCurrentLogUnit.getWord() + "'" : ""));
|
||||
|
|
Loading…
Reference in a new issue