Prevent cleanup of debug info attachments

This commit is contained in:
M66B 2019-06-19 12:23:17 +02:00
parent ce0e2ba5f8
commit da530944d4
1 changed files with 10 additions and 9 deletions

View File

@ -196,6 +196,11 @@ public class Log {
HtmlHelper.getPreview(body),
null);
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
attachSettings(context, draft.id, 1);
attachAccounts(context, draft.id, 2);
attachNetworkInfo(context, draft.id, 3);
@ -205,10 +210,6 @@ public class Log {
EntityOperation.queue(context, draft, EntityOperation.ADD);
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
return draft;
}