summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-07 15:04:42 +0300
committerAndrew Dolgov <[email protected]>2011-12-07 15:04:42 +0300
commit175c703650a26057fa58b9ad62e353e23fb82806 (patch)
tree695ed435fa98fe3843bff78eb1305648270e7d56
parent0e9b1e76d22e88f77d70ea34068054ca27b557be (diff)
remove periodic downloading articles notifies
-rw-r--r--res/values/strings.xml2
-rw-r--r--src/org/fox/ttrss/OfflineDownloadService.java5
2 files changed, 4 insertions, 3 deletions
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 @@
<string name="dialog_cancel">Cancel</string>
<string name="syncing_offline_data">Synchronizing offline data...</string>
<string name="dialog_offline_switch_prompt">Download unread articles and go offline?</string>
- <string name="notify_downloading_articles">Downloading articles (%1$d)...</string>
+ <string name="notify_downloading_articles">Downloading articles...</string>
<string name="notify_downloading_init">Starting download...</string>
<string name="notify_downloading_feeds">Downloading feeds...</string>
<string name="notify_uploading_sending_data">Sending data to server...</string>
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();