mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 64c34122: Merge "[TestPrep11] Only use mHasWrittenData to control JsonWriter#endArray() call"
* commit '64c34122f26f58a621ca9e2f9258ab47d99a1178': [TestPrep11] Only use mHasWrittenData to control JsonWriter#endArray() call
This commit is contained in:
commit
14de0d22ab
@ -107,16 +107,12 @@ public class ResearchLog {
|
||||
try {
|
||||
if (mHasWrittenData) {
|
||||
mJsonWriter.endArray();
|
||||
mJsonWriter.flush();
|
||||
mJsonWriter.close();
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "wrote log to " + mFile);
|
||||
}
|
||||
mHasWrittenData = false;
|
||||
} else {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "close() called, but no data, not outputting");
|
||||
}
|
||||
}
|
||||
mJsonWriter.flush();
|
||||
mJsonWriter.close();
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "wrote log to " + mFile);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.d(TAG, "error when closing ResearchLog:", e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user