summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJeff DeCew <jeffdq@google.com>2021-08-17 17:24:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-08-17 17:24:55 +0000
commitd137a26d19da750006f406141bb80db03b611a57 (patch)
tree356a67bc0d9677a0a463e4135397fa7443d3673d /core/java
parent65289e6cf701b5b72146a7ee014f8e0bdd462de3 (diff)
parentb9bd95ff02bfbffca225e36c0090e08100e206f0 (diff)
Merge "Make foreground color selection in SmartReplyView and RemoteInputView match Notification."
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/Notification.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 26fb0d88b430..ea7fa2ec5d6f 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -6245,8 +6245,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;
}