summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-12-17 18:59:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-17 18:59:40 +0000
commitc3059b444fbd30b1344cd5ee3c7030d1e9e5c408 (patch)
tree1e0c8d806f69e8b5ee2584dbdacb1e1542c62d29 /core/java/android/app
parentf2bd50b2ec0e5d7a25694170e0dc1363465fd24e (diff)
parent92df1f275831c23e3ed5b70d621a0c298e0bafea (diff)
downloadframeworks_base-c3059b444fbd30b1344cd5ee3c7030d1e9e5c408.zip
frameworks_base-c3059b444fbd30b1344cd5ee3c7030d1e9e5c408.tar.gz
frameworks_base-c3059b444fbd30b1344cd5ee3c7030d1e9e5c408.tar.bz2
Merge "Fix colored icons in doze mode" into lmp-mr1-dev
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 5afef80..80b57b7 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -3055,6 +3055,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);
}
@@ -3102,11 +3107,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);