Commit fa8e3d6b authored by Tiger Oakes's avatar Tiger Oakes Committed by Tiger Oakes
Browse files

Closes #3673 - Add custom download icon

parent a1f848a6
......@@ -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)
......
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim0" android:duration="200" />
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim1" android:duration="200" />
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim2" android:duration="200" />
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim3" android:duration="200" />
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim4" android:duration="200" />
<item android:drawable="@drawable/mozac_feature_download_ic_download_anim5" android:duration="200" />
</animation-list>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
</vector>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
<path
android:name="animated_fill"
android:pathData="M 0 0 L 24 0 L 24 4 L 0 4 Z"
android:fillColor="#FFF"/>
</vector>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
<path
android:name="animated_fill"
android:pathData="M 0 0 L 24 0 L 24 6 L 0 6 Z"
android:fillColor="#FFF"/>
</vector>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
<path
android:name="animated_fill"
android:pathData="M 0 0 L 24 0 L 24 8 L 0 8 Z"
android:fillColor="#FFF"/>
</vector>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
<path
android:name="animated_fill"
android:pathData="M 0 0 L 24 0 L 24 10 L 0 10 Z"
android:fillColor="#FFF"/>
</vector>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<clip-path android:pathData="M13,3a1,1 0,1 0,-2 0v11.6l-4.3,-4.3a1,1 0,0 0,-1.4 1.4l6,6a1,1 0,0 0,1.4 0l6,-6a1,1 0,0 0,-1.4 -1.4L13,14.6V3zM5,21a1,1 0,0 1,1 -1h12a1,1 0,1 1,0 2H6a1,1 0,0 1,-1 -1z"/>
<path
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:fillColor="#3FFF"/>
<path
android:name="animated_fill"
android:pathData="M 0 0 L 24 0 L 24 20 L 0 20 Z"
android:fillColor="#FFF"/>
</vector>
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment