Added 2state debugging

This commit is contained in:
M66B
2021-09-22 18:06:50 +02:00
parent d86a5dcdc0
commit 0ff0b19b00
2 changed files with 51 additions and 12 deletions

View File

@@ -2212,9 +2212,10 @@ public class Log {
long size = 0;
File file = attachment.getFile(context);
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
for (SimpleTask task : SimpleTask.getList()) {
for (SimpleTask task : SimpleTask.getList())
size += write(os, String.format("%s\r\n", task.toString()));
}
for (TwoStateOwner owner : TwoStateOwner.getList())
size += write(os, String.format("%s\r\n", owner.toString()));
}
db.attachment().setDownloaded(attachment.id, size);