Fix contrast issue with folder background and text colors.

Bug: 187797251
Test: dark wallpaper, light wallpaper, toggle dark theme on both
Change-Id: I57ddfc91878d68735d5ae5ec5ab78222fda101ca
This commit is contained in:
Jon Miranda committed 2021-05-11 17:01:53 -07:00
1 parent d30f4ce528
commit 7bbd03160f
7 files changed
+25 -7

No files matched your search

@@ -296,6 +296,8 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
}
if (Utilities.ATLEAST_S) {
mColorExtractionIndex = LocalColorExtractor.getColorIndex(
!Themes.getAttrBoolean(getContext(), R.attr.isFolderDarkText));
mColorExtractor = LocalColorExtractor.newInstance(getContext());
mColorListener = (RectF rect, SparseIntArray extractedColors) -> {
mColorChangeRunnable = () -> {