diff --git a/res/values/strings.xml b/res/values/strings.xml index 25871fcd..91b545d3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -103,7 +103,7 @@ Cancel Synchronizing offline data... Download unread articles and go offline? - Downloading articles (%1$d)... + Downloading articles... Starting download... Downloading feeds... Sending data to server... diff --git a/src/org/fox/ttrss/OfflineDownloadService.java b/src/org/fox/ttrss/OfflineDownloadService.java index 933cc75e..489df927 100644 --- a/src/org/fox/ttrss/OfflineDownloadService.java +++ b/src/org/fox/ttrss/OfflineDownloadService.java @@ -140,8 +140,6 @@ public class OfflineDownloadService extends IntentService { private void downloadArticles() { Log.d(TAG, "offline: downloading articles... offset=" + m_articleOffset); - updateNotification(getString(R.string.notify_downloading_articles, m_articleOffset)); - OfflineArticlesRequest req = new OfflineArticlesRequest(this); @SuppressWarnings("serial") @@ -196,6 +194,9 @@ public class OfflineDownloadService extends IntentService { m_articleOffset = 0; getWritableDb().execSQL("DELETE FROM articles;"); + + updateNotification(R.string.notify_downloading_articles); + downloadArticles(); } catch (Exception e) { e.printStackTrace();