diff options
| author | jan_bar <jan_bar@ITBARES.prague.wood.cz> | 2013-04-24 16:07:51 +0200 |
|---|---|---|
| committer | jan_bar <jan_bar@ITBARES.prague.wood.cz> | 2013-04-24 16:07:51 +0200 |
| commit | 08220587127d97ad9dcddab16df2a83f75b9ffef (patch) | |
| tree | 3fcaba9a88f73ea0a59a8dbee77f3515aa0e17ba /src/org/fox/ttrss/offline/OfflineDownloadService.java | |
| parent | 3bdb6e86afb68ccebe9aa7fe3126a3d9152d584b (diff) | |
Show author in offline mode
Diffstat (limited to 'src/org/fox/ttrss/offline/OfflineDownloadService.java')
| -rw-r--r-- | src/org/fox/ttrss/offline/OfflineDownloadService.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/org/fox/ttrss/offline/OfflineDownloadService.java b/src/org/fox/ttrss/offline/OfflineDownloadService.java index 78ae6693..410c339a 100644 --- a/src/org/fox/ttrss/offline/OfflineDownloadService.java +++ b/src/org/fox/ttrss/offline/OfflineDownloadService.java @@ -367,10 +367,8 @@ public class OfflineDownloadService extends Service { m_articles = new Gson().fromJson(content, listType); SQLiteStatement stmtInsert = getWritableDb().compileStatement("INSERT INTO articles " + - "(" + - BaseColumns._ID + - ", unread, marked, published, score, updated, is_updated, title, link, feed_id, tags, content) " + - "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); + "("+BaseColumns._ID+", unread, marked, published, score, updated, is_updated, title, link, feed_id, tags, content, author) " + + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);"); for (Article article : m_articles) { @@ -395,6 +393,7 @@ public class OfflineDownloadService extends Service { stmtInsert.bindLong(index++, article.feed_id); stmtInsert.bindString(index++, tagsString); // comma-separated tags stmtInsert.bindString(index++, article.content); + stmtInsert.bindString(index++, article.author); if (m_downloadImages) { Document doc = Jsoup.parse(article.content); |