|
|
@ -196,19 +196,20 @@ public class Log {
|
|
|
|
HtmlHelper.getPreview(body),
|
|
|
|
HtmlHelper.getPreview(body),
|
|
|
|
null);
|
|
|
|
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();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.endTransaction();
|
|
|
|
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;
|
|
|
|
return draft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|