Change icon for failed download(s) report
This commit is contained in:
parent
e83774a684
commit
21ca881572
|
@ -520,9 +520,7 @@ public class DownloadService extends Service {
|
||||||
/**
|
/**
|
||||||
* Creates a notification at the end of the service lifecycle to notify the
|
* 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
|
* user about the number of completed downloads. A report will only be
|
||||||
* created if the number of successfully downloaded feeds is bigger than 1
|
* created if there is at least one failed download excluding images
|
||||||
* or if there is at least one failed download which is not an image or if
|
|
||||||
* there is at least one downloaded media file.
|
|
||||||
*/
|
*/
|
||||||
private void updateReport() {
|
private void updateReport() {
|
||||||
// check if report should be created
|
// check if report should be created
|
||||||
|
@ -556,10 +554,10 @@ public class DownloadService extends Service {
|
||||||
getString(R.string.download_report_content),
|
getString(R.string.download_report_content),
|
||||||
successfulDownloads, failedDownloads)
|
successfulDownloads, failedDownloads)
|
||||||
)
|
)
|
||||||
.setSmallIcon(R.drawable.stat_notify_sync)
|
.setSmallIcon(R.drawable.stat_notify_sync_error)
|
||||||
.setLargeIcon(
|
.setLargeIcon(
|
||||||
BitmapFactory.decodeResource(getResources(),
|
BitmapFactory.decodeResource(getResources(),
|
||||||
R.drawable.stat_notify_sync)
|
R.drawable.stat_notify_sync_error)
|
||||||
)
|
)
|
||||||
.setContentIntent(
|
.setContentIntent(
|
||||||
ClientConfig.downloadServiceCallbacks.getReportNotificationContentIntent(this)
|
ClientConfig.downloadServiceCallbacks.getReportNotificationContentIntent(this)
|
||||||
|
|
Loading…
Reference in New Issue