Commit 272a5e59 by tonihei Committed by Oliver Woodman

Use download icon instead of play icon for download notification.

PiperOrigin-RevId: 225001681
parent 2f365e5a
...@@ -53,7 +53,7 @@ public class DemoDownloadService extends DownloadService { ...@@ -53,7 +53,7 @@ public class DemoDownloadService extends DownloadService {
protected Notification getForegroundNotification(TaskState[] taskStates) { protected Notification getForegroundNotification(TaskState[] taskStates) {
return DownloadNotificationUtil.buildProgressNotification( return DownloadNotificationUtil.buildProgressNotification(
/* context= */ this, /* context= */ this,
R.drawable.exo_controls_play, R.drawable.ic_download,
CHANNEL_ID, CHANNEL_ID,
/* contentIntent= */ null, /* contentIntent= */ null,
/* message= */ null, /* message= */ null,
...@@ -70,7 +70,7 @@ public class DemoDownloadService extends DownloadService { ...@@ -70,7 +70,7 @@ public class DemoDownloadService extends DownloadService {
notification = notification =
DownloadNotificationUtil.buildDownloadCompletedNotification( DownloadNotificationUtil.buildDownloadCompletedNotification(
/* context= */ this, /* context= */ this,
R.drawable.exo_controls_play, R.drawable.ic_download_done,
CHANNEL_ID, CHANNEL_ID,
/* contentIntent= */ null, /* contentIntent= */ null,
Util.fromUtf8Bytes(taskState.action.data)); Util.fromUtf8Bytes(taskState.action.data));
...@@ -78,7 +78,7 @@ public class DemoDownloadService extends DownloadService { ...@@ -78,7 +78,7 @@ public class DemoDownloadService extends DownloadService {
notification = notification =
DownloadNotificationUtil.buildDownloadFailedNotification( DownloadNotificationUtil.buildDownloadFailedNotification(
/* context= */ this, /* context= */ this,
R.drawable.exo_controls_play, R.drawable.ic_download_done,
CHANNEL_ID, CHANNEL_ID,
/* contentIntent= */ null, /* contentIntent= */ null,
Util.fromUtf8Bytes(taskState.action.data)); Util.fromUtf8Bytes(taskState.action.data));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment