OSDN Git Service

Fixed the contrast for low-priority notifications
authorSelim Cinek <cinek@google.com>
Tue, 2 May 2017 23:05:41 +0000 (16:05 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 4 May 2017 22:30:33 +0000 (15:30 -0700)
commitac5f02749a595d39711beb4a1defb01949eb548a
treea2fcb03812b3747d01023b2aa00ff0f5300885a9
parent0f66a4cc16ec1a927c90ac559c73c80ddcb5ee71
Fixed the contrast for low-priority notifications

The low priority notifications had their contrast calculated
against the white background and weren't satisfying
our contrast requirements.
This also aligns the case where the app had no colors better,
and ensures that it's actually using the secondary text
color there.

Test: existing tests pass
Change-Id: Ic11e9d06783e60998f35e0eb7f6f29fb1d86c7df
Fixes: 37444266
core/java/android/app/Notification.java
core/java/com/android/internal/util/NotificationColorUtil.java
packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java