From ba19d816c58b192b9ab7bce3e5e550a8ad71c1dd Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 21 Jul 2019 20:09:55 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/Log.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 461a58e902..27707ca07f 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -196,20 +196,20 @@ public class Log { HtmlHelper.getPreview(body), null); + attachSettings(context, draft.id, 1); + attachAccounts(context, draft.id, 2); + attachNetworkInfo(context, draft.id, 3); + attachLog(context, draft.id, 4); + attachOperations(context, draft.id, 5); + attachLogcat(context, draft.id, 6); + + EntityOperation.queue(context, draft, EntityOperation.ADD); + db.setTransactionSuccessful(); } finally { db.endTransaction(); } - attachSettings(context, draft.id, 1); - attachAccounts(context, draft.id, 2); - attachNetworkInfo(context, draft.id, 3); - attachLog(context, draft.id, 4); - attachOperations(context, draft.id, 5); - attachLogcat(context, draft.id, 6); - - EntityOperation.queue(context, draft, EntityOperation.ADD); - return draft; }