diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-12-17 19:10:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-17 19:10:43 +0000 |
commit | 3a70523eb63c4f61dcd6fcf52f1d9ebae7482027 (patch) | |
tree | 478f6de9dac331a2227ace81e624747efc1e81a6 /core/java/android/app | |
parent | 237637e22ba9d98171f32d2302b9f532120729a9 (diff) | |
parent | 4a5129c83b92e7ae198f4b9a3018c8cdcba5dd86 (diff) | |
download | frameworks_base-3a70523eb63c4f61dcd6fcf52f1d9ebae7482027.zip frameworks_base-3a70523eb63c4f61dcd6fcf52f1d9ebae7482027.tar.gz frameworks_base-3a70523eb63c4f61dcd6fcf52f1d9ebae7482027.tar.bz2 |
am 4a5129c8: am c3059b44: Merge "Fix colored icons in doze mode" into lmp-mr1-dev
* commit '4a5129c83b92e7ae198f4b9a3018c8cdcba5dd86':
Fix colored icons in doze mode
Diffstat (limited to 'core/java/android/app')
-rw-r--r-- | core/java/android/app/Notification.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 55da991..860b9cc 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3056,6 +3056,11 @@ public class Notification implements Parcelable * Apply any necessary background to smallIcons being used in the largeIcon spot. */ private void processSmallIconAsLarge(int largeIconId, RemoteViews contentView) { + if (!isLegacy()) { + contentView.setDrawableParameters(R.id.icon, false, -1, + 0xFFFFFFFF, + PorterDuff.Mode.SRC_ATOP, -1); + } if (!isLegacy() || mColorUtil.isGrayscaleIcon(mContext, largeIconId)) { applyLargeIconBackground(contentView); } @@ -3103,11 +3108,12 @@ public class Notification implements Parcelable */ private void processSmallRightIcon(int smallIconDrawableId, RemoteViews contentView) { - if (!isLegacy() || mColorUtil.isGrayscaleIcon(mContext, smallIconDrawableId)) { + if (!isLegacy()) { contentView.setDrawableParameters(R.id.right_icon, false, -1, 0xFFFFFFFF, PorterDuff.Mode.SRC_ATOP, -1); - + } + if (!isLegacy() || mColorUtil.isGrayscaleIcon(mContext, smallIconDrawableId)) { contentView.setInt(R.id.right_icon, "setBackgroundResource", R.drawable.notification_icon_legacy_bg); |