diff options
| author | Jeff DeCew <jeffdq@google.com> | 2021-08-17 19:39:52 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-08-17 19:39:52 +0000 |
| commit | 7945079a7770f6f03d68ad9aed68f3ec9ba50301 (patch) | |
| tree | 11566cff7f3560b39abbdc8eb7d4ae6175444f29 /core/java | |
| parent | e5d3310036edb6f27b74b33138c2e6be5e3729ac (diff) | |
| parent | 0c43fe4e92b69aaa9a42b404e00bbb9e473300fa (diff) | |
Merge "Make foreground color selection in SmartReplyView and RemoteInputView match Notification." into sc-qpr1-dev am: 0c43fe4e92
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15549415
Change-Id: I4b2d8f1c866b4d0e823ed338f58a55a3c395dd80
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/Notification.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 8ac8e5e2224e..e39636dc45fb 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -6247,8 +6247,9 @@ public class Notification implements Parcelable * * @param color the color to check * @return true if the color has higher contrast with white than black + * @hide */ - private static boolean isColorDark(int color) { + public static boolean isColorDark(int color) { // as per ContrastColorUtil.shouldUseDark, this uses the color contrast midpoint. return ContrastColorUtil.calculateLuminance(color) <= 0.17912878474; } |
