From 08220587127d97ad9dcddab16df2a83f75b9ffef Mon Sep 17 00:00:00 2001 From: jan_bar Date: Wed, 24 Apr 2013 16:07:51 +0200 Subject: Show author in offline mode --- src/org/fox/ttrss/offline/OfflineDownloadService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/org/fox/ttrss/offline/OfflineDownloadService.java') 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); -- cgit v1.2.3-54-g00ecf