summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-12-17 19:39:49 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-17 19:39:49 +0000
commit92c9be1c1219a1a31ad3c43a78b6acf9dde0b6bd (patch)
tree8fabaaec81ecd5973eb8ebf4d89ea8bcbb65ebd4 /core/java/android/app
parent743a68fc5f62c645d442aa8b3c9ba7e7d9361785 (diff)
parent3a70523eb63c4f61dcd6fcf52f1d9ebae7482027 (diff)
downloadframeworks_base-92c9be1c1219a1a31ad3c43a78b6acf9dde0b6bd.zip
frameworks_base-92c9be1c1219a1a31ad3c43a78b6acf9dde0b6bd.tar.gz
frameworks_base-92c9be1c1219a1a31ad3c43a78b6acf9dde0b6bd.tar.bz2
am 3a70523e: am 4a5129c8: am c3059b44: Merge "Fix colored icons in doze mode" into lmp-mr1-dev
* commit '3a70523eb63c4f61dcd6fcf52f1d9ebae7482027': Fix colored icons in doze mode
Diffstat (limited to 'core/java/android/app')
-rw-r--r--core/java/android/app/Notification.java10
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);