summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-05-13 19:35:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-13 19:35:28 +0000
commit4c27d9170842813d12fd30850d0b5b7e170aad4a (patch)
tree2b952920d07f466f58ddc34ddebf741989485e48 /packages/SystemUI
parent2047ce824030a2ea6227a7544789281530b7892d (diff)
parenta49d5fc7677162689ffae85f8b95c57d83868bcf (diff)
downloadframeworks_base-4c27d9170842813d12fd30850d0b5b7e170aad4a.zip
frameworks_base-4c27d9170842813d12fd30850d0b5b7e170aad4a.tar.gz
frameworks_base-4c27d9170842813d12fd30850d0b5b7e170aad4a.tar.bz2
Merge "Updated storage notification icons." into mnc-dev
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
index e6c95b5..23813d1 100644
--- a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
@@ -176,7 +176,7 @@ public class StorageNotification extends SystemUI {
final CharSequence text = mContext.getString(R.string.ext_media_missing_message);
final Notification notif = new Notification.Builder(mContext)
- .setSmallIcon(R.drawable.stat_notify_sdcard)
+ .setSmallIcon(R.drawable.ic_sd_card_48dp)
.setColor(mContext.getColor(R.color.system_notification_accent_color))
.setContentTitle(title)
.setContentText(text)
@@ -313,9 +313,10 @@ public class StorageNotification extends SystemUI {
final PendingIntent initIntent = buildInitPendingIntent(vol);
return buildNotificationBuilder(vol, title, text)
- .addAction(new Action(0, mContext.getString(R.string.ext_media_init_action),
- initIntent))
- .addAction(new Action(0, mContext.getString(R.string.ext_media_unmount_action),
+ .addAction(new Action(R.drawable.ic_settings_24dp,
+ mContext.getString(R.string.ext_media_init_action), initIntent))
+ .addAction(new Action(R.drawable.ic_eject_24dp,
+ mContext.getString(R.string.ext_media_unmount_action),
buildUnmountPendingIntent(vol)))
.setContentIntent(initIntent)
.setDeleteIntent(buildSnoozeIntent(vol))
@@ -329,9 +330,11 @@ public class StorageNotification extends SystemUI {
final PendingIntent browseIntent = buildBrowsePendingIntent(vol);
return buildNotificationBuilder(vol, title, text)
- .addAction(new Action(0, mContext.getString(R.string.ext_media_browse_action),
+ .addAction(new Action(R.drawable.ic_folder_24dp,
+ mContext.getString(R.string.ext_media_browse_action),
browseIntent))
- .addAction(new Action(0, mContext.getString(R.string.ext_media_unmount_action),
+ .addAction(new Action(R.drawable.ic_eject_24dp,
+ mContext.getString(R.string.ext_media_unmount_action),
buildUnmountPendingIntent(vol)))
.setContentIntent(browseIntent)
.setDeleteIntent(buildSnoozeIntent(vol))
@@ -430,7 +433,7 @@ public class StorageNotification extends SystemUI {
}
final Notification notif = new Notification.Builder(mContext)
- .setSmallIcon(R.drawable.stat_notify_sdcard)
+ .setSmallIcon(R.drawable.ic_sd_card_48dp)
.setColor(mContext.getColor(R.color.system_notification_accent_color))
.setContentTitle(title)
.setContentText(text)
@@ -477,7 +480,7 @@ public class StorageNotification extends SystemUI {
}
final Notification notif = new Notification.Builder(mContext)
- .setSmallIcon(R.drawable.stat_notify_sdcard)
+ .setSmallIcon(R.drawable.ic_sd_card_48dp)
.setColor(mContext.getColor(R.color.system_notification_accent_color))
.setContentTitle(title)
.setContentText(text)
@@ -498,14 +501,14 @@ public class StorageNotification extends SystemUI {
switch (state) {
case VolumeInfo.STATE_CHECKING:
case VolumeInfo.STATE_EJECTING:
- return R.drawable.stat_notify_sdcard_prepare;
+ return R.drawable.ic_sd_card_48dp;
default:
- return R.drawable.stat_notify_sdcard;
+ return R.drawable.ic_sd_card_48dp;
}
} else if (disk.isUsb()) {
- return R.drawable.stat_sys_data_usb;
+ return R.drawable.ic_usb_48dp;
} else {
- return R.drawable.stat_notify_sdcard;
+ return R.drawable.ic_sd_card_48dp;
}
}