summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hennen <TomHennen@users.noreply.github.com>2015-05-02 08:26:04 -0400
committerTom Hennen <TomHennen@users.noreply.github.com>2015-05-02 08:26:04 -0400
commit1bd6bf76f6d9ce2709364d4cf396d5f3cc0f32d1 (patch)
treea8eb50d5c4f3d5791b4369943b5024dd84bbdd8e
parent252f80de787feba0acf29cb6ca75d3128d4fbdac (diff)
parentfd49d491b72b9261b4ebe3957955c194046f6c32 (diff)
downloadAntennaPod-1bd6bf76f6d9ce2709364d4cf396d5f3cc0f32d1.zip
Merge pull request #780 from mfietz/download_report
Download Report
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java10
-rw-r--r--core/src/main/res/values/strings.xml3
2 files changed, 6 insertions, 7 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
index 84822666c..4e40fbe1e 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
@@ -520,9 +520,7 @@ public class DownloadService extends Service {
/**
* Creates a notification at the end of the service lifecycle to notify the
* user about the number of completed downloads. A report will only be
- * created if the number of successfully downloaded feeds is bigger than 1
- * or if there is at least one failed download which is not an image or if
- * there is at least one downloaded media file.
+ * created if there is at least one failed download excluding images
*/
private void updateReport() {
// check if report should be created
@@ -550,16 +548,16 @@ public class DownloadService extends Service {
.setTicker(
getString(R.string.download_report_title))
.setContentTitle(
- getString(R.string.download_report_title))
+ getString(R.string.download_report_content_title))
.setContentText(
String.format(
getString(R.string.download_report_content),
successfulDownloads, failedDownloads)
)
- .setSmallIcon(R.drawable.stat_notify_sync)
+ .setSmallIcon(R.drawable.stat_notify_sync_error)
.setLargeIcon(
BitmapFactory.decodeResource(getResources(),
- R.drawable.stat_notify_sync)
+ R.drawable.stat_notify_sync_error)
)
.setContentIntent(
ClientConfig.downloadServiceCallbacks.getReportNotificationContentIntent(this)
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
index f162bb353..c0c2f06de 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -128,7 +128,8 @@
<string name="download_error_unauthorized">Authentication error</string>
<string name="cancel_all_downloads_label">Cancel all downloads</string>
<string name="download_cancelled_msg">Download cancelled</string>
- <string name="download_report_title">Downloads completed</string>
+ <string name="download_report_title">Downloads completed with error(s)</string>
+ <string name="download_report_content_title">Download report</string>
<string name="download_error_malformed_url">Malformed URL</string>
<string name="download_error_io_error">IO Error</string>
<string name="download_error_request_error">Request error</string>