Merge pull request #224 from lbryio/download-notification-icon
change download notification icon
This commit is contained in:
commit
9af5c0e0f4
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ public class DownloadManagerModule extends ReactContextBaseJavaModule {
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID);
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID);
|
||||||
builder.setContentTitle("Active downloads")
|
builder.setContentTitle("Active downloads")
|
||||||
.setContentText("Active downloads")
|
.setContentText("Active downloads")
|
||||||
.setSmallIcon(R.drawable.ic_file_download_black_24dp)
|
.setSmallIcon(android.R.drawable.stat_sys_download)
|
||||||
.setPriority(NotificationCompat.PRIORITY_LOW)
|
.setPriority(NotificationCompat.PRIORITY_LOW)
|
||||||
.setGroup(GROUP_DOWNLOADS)
|
.setGroup(GROUP_DOWNLOADS)
|
||||||
.setGroupSummary(true)
|
.setGroupSummary(true)
|
||||||
|
@ -114,7 +114,7 @@ public class DownloadManagerModule extends ReactContextBaseJavaModule {
|
||||||
.setGroup(GROUP_DOWNLOADS)
|
.setGroup(GROUP_DOWNLOADS)
|
||||||
.setPriority(NotificationCompat.PRIORITY_LOW)
|
.setPriority(NotificationCompat.PRIORITY_LOW)
|
||||||
.setProgress(MAX_PROGRESS, 0, false)
|
.setProgress(MAX_PROGRESS, 0, false)
|
||||||
.setSmallIcon(R.drawable.ic_file_download_black_24dp);
|
.setSmallIcon(android.R.drawable.stat_sys_download);
|
||||||
|
|
||||||
int notificationId = generateNotificationId();
|
int notificationId = generateNotificationId();
|
||||||
downloadIdNotificationIdMap.put(id, notificationId);
|
downloadIdNotificationIdMap.put(id, notificationId);
|
||||||
|
|
Loading…
Reference in a new issue