Commit a5dff593 authored by qinmin's avatar qinmin Committed by Commit bot

Add resources for download notification

There are some issues on download notification icons:
1. Pause button has a wierd outline.
2. cancel button looks lighter than pause/resume

This change adds new resources to address those issues.

BUG=604944

Review URL: https://codereview.chromium.org/1906273002

Cr-Commit-Position: refs/heads/master@{#389233}
parent 363323dc
...@@ -145,11 +145,11 @@ public class DownloadNotificationService extends Service { ...@@ -145,11 +145,11 @@ public class DownloadNotificationService extends Service {
notificationId, isResumable, canDownloadWhileMetered, downloadGuid, fileName)); notificationId, isResumable, canDownloadWhileMetered, downloadGuid, fileName));
} }
if (startTime > 0) builder.setWhen(startTime); if (startTime > 0) builder.setWhen(startTime);
builder.addAction(android.R.drawable.ic_menu_close_clear_cancel, builder.addAction(R.drawable.bookmark_cancel_active,
mContext.getResources().getString(R.string.download_notification_cancel_button), mContext.getResources().getString(R.string.download_notification_cancel_button),
buildPendingIntent(ACTION_DOWNLOAD_CANCEL, notificationId, downloadGuid, fileName)); buildPendingIntent(ACTION_DOWNLOAD_CANCEL, notificationId, downloadGuid, fileName));
if (isResumable) { if (isResumable) {
builder.addAction(android.R.drawable.ic_media_pause, builder.addAction(R.drawable.ic_vidcontrol_pause,
mContext.getResources().getString(R.string.download_notification_pause_button), mContext.getResources().getString(R.string.download_notification_pause_button),
buildPendingIntent(ACTION_DOWNLOAD_PAUSE, notificationId, downloadGuid, buildPendingIntent(ACTION_DOWNLOAD_PAUSE, notificationId, downloadGuid,
fileName)); fileName));
...@@ -191,11 +191,11 @@ public class DownloadNotificationService extends Service { ...@@ -191,11 +191,11 @@ public class DownloadNotificationService extends Service {
PendingIntent cancelIntent = buildPendingIntent(ACTION_DOWNLOAD_CANCEL, PendingIntent cancelIntent = buildPendingIntent(ACTION_DOWNLOAD_CANCEL,
entry.notificationId, entry.downloadGuid, entry.fileName); entry.notificationId, entry.downloadGuid, entry.fileName);
builder.setDeleteIntent(cancelIntent); builder.setDeleteIntent(cancelIntent);
builder.addAction(android.R.drawable.ic_menu_close_clear_cancel, builder.addAction(R.drawable.bookmark_cancel_active,
mContext.getResources().getString(R.string.download_notification_cancel_button), mContext.getResources().getString(R.string.download_notification_cancel_button),
cancelIntent); cancelIntent);
if (entry.isResumable) { if (entry.isResumable) {
builder.addAction(android.R.drawable.stat_sys_download_done, builder.addAction(R.drawable.resume_download,
mContext.getResources().getString( mContext.getResources().getString(
R.string.download_notification_resume_button), R.string.download_notification_resume_button),
buildPendingIntent(ACTION_DOWNLOAD_RESUME, entry.notificationId, buildPendingIntent(ACTION_DOWNLOAD_RESUME, entry.notificationId,
......
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 to comment