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
2021-05-11 17:01:13 -07:00
parent d30f4ce528
commit 7bbd03160f
7 changed files with 25 additions and 7 deletions

View File

@@ -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 = () -> {