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