OSDN Git Service

Fixing the colorization of legacy media notifications
authorSelim Cinek <cinek@google.com>
Wed, 10 May 2017 23:33:25 +0000 (16:33 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 11 May 2017 23:08:44 +0000 (16:08 -0700)
commita7679b6f3f0fc3e7c40102b732cfa51a9830a891
tree62a567f7d00bfab16a9e4aaf407901abfff9a618
parent6307ac52e53cc25949c5d2e26015702cbc45899b
Fixing the colorization of legacy media notifications

Previously the colorization wouldn't work if the notification
was not targeting N and above, since for those the
remoteviews would be built into the notification and we couldn't
colorize it.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/MediaNotificationProcessorTest.java
Fixes: 38147364
Fixes: 37743600
Change-Id: Iabad02a4515c42676c0660293e58cf62d5d8ff88
core/java/android/app/Notification.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/MediaNotificationProcessor.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/MediaNotificationProcessorTest.java [new file with mode: 0644]
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/PropertyAnimatorTest.java [moved from packages/SystemUI/tests/src/com/android/systemui/notification/PropertyAnimatorTest.java with 94% similarity]
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/VisualStabilityManagerTest.java [moved from packages/SystemUI/tests/src/com/android/systemui/notification/VisualStabilityManagerTest.java with 93% similarity]