commit | 5fb73f86299d9cc616ca741f8c7c4af2485cc273 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Thu Apr 20 16:55:38 2017 -0700 |
committer | Selim Cinek <cinek@google.com> | Thu Apr 27 22:21:17 2017 +0000 |
tree | ca80f7ff271159c5c6687c355162c206b955ec68 | |
parent | 2630dc7ecf16a965321cfc615104f372cd2b0e96 [diff] [blame] |
Extracting the notification colors based on the album art Media notifications are now extracting the background and foreground colors from the album art. Test: manual, play different songs Bug: 36561228 Merged-In: I9c3c962fa59eb70ef9b2d4893b939be6e1ee1ab0 Change-Id: I9c3c962fa59eb70ef9b2d4893b939be6e1ee1ab0
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java index 3bad5cc7..77fc5e697 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java
@@ -309,6 +309,12 @@ = Notification.Builder.recoverBuilder(mContext, mSbn.getNotification()); mPackageContext = mSbn.getPackageContext(mContext); + Notification notification = mSbn.getNotification(); + if (notification.isColorizedMedia()) { + MediaNotificationProcessor processor = new MediaNotificationProcessor( + mPackageContext); + processor.processNotification(notification, recoveredBuilder); + } return recoveredBuilder; } catch (Exception e) { mError = e;