diff --git a/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt b/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt index 8fc4f0172d7..e489339b8fb 100644 --- a/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt +++ b/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt @@ -209,7 +209,7 @@ abstract class AbstractFetchDownloadService( val channelId = ensureChannelExists(this) return NotificationCompat.Builder(this, channelId) - .setSmallIcon(android.R.drawable.stat_sys_download) + .setSmallIcon(R.drawable.mozac_feature_download_ic_download) .setContentTitle(getString(R.string.mozac_feature_downloads_ongoing_notification_title)) .setContentText(getString(R.string.mozac_feature_downloads_ongoing_notification_text)) .setCategory(NotificationCompat.CATEGORY_PROGRESS) diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download.xml new file mode 100644 index 00000000000..14ab71880b2 --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download.xml @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim0.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim0.xml new file mode 100644 index 00000000000..fe77c7f45a8 --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim0.xml @@ -0,0 +1,15 @@ + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim1.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim1.xml new file mode 100644 index 00000000000..b14f73537b6 --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim1.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim2.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim2.xml new file mode 100644 index 00000000000..77353bc0b19 --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim2.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim3.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim3.xml new file mode 100644 index 00000000000..f326e0d24aa --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim3.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim4.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim4.xml new file mode 100644 index 00000000000..0f9feaf19fd --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim4.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim5.xml b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim5.xml new file mode 100644 index 00000000000..8102a93b581 --- /dev/null +++ b/components/feature/downloads/src/main/res/drawable/mozac_feature_download_ic_download_anim5.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/docs/changelog.md b/docs/changelog.md index 14149114895..b6ad684f207 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -15,6 +15,9 @@ permalink: /changelog/ * **feature-media** * Added `MediaNotificationFeature` - a feature implementation to show an ongoing notification (keeping the app process alive) while web content is playing media. +* **feature-downloads** + * Added custom notification icon for `FetchDownloadManager`. + # 3.0.0 * [Commits](https://github.com/mozilla-mobile/android-components/compare/v2.0.0...v3.0.0)