From 3c8d358c63e6b2b57c44bc96615e30f89591ffa3 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Sun, 20 Mar 2022 22:16:13 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b125ce..8e5e2e3 100644 --- a/README.md +++ b/README.md @@ -64,13 +64,13 @@ Fix the native notification bar icon function abandoned by the MIUI development 选择放弃原生通知功能,而做出这种违反原生通知规则的做法,而这些彩色图标被设置为单色调图标,也确实会发生黑白块的问题,但是同时又会破坏遵守规范的图标。

真的没有办法了吗?在不断探索下,我找到了原生支持色彩判断的类。 -``` +```kotlin com.android.internal.util.ContrastColorUtil ``` 这个类中有一个方法可以拿出来判断图标的灰度效果。 -``` +```kotlin ContrastColorUtil.getInstance().isGrayscaleIcon(drawable) ```