summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Tyler Freeman <fuego@google.com> 2024-02-23 02:08:53 +0000
committer Tyler Freeman <fuego@google.com> 2024-05-30 22:12:28 +0000
commit48a980e116d4fe296d331c2226cd53c9f0fb5761 (patch)
tree9690a4f4de7586cd34c91b3862a1f85f0d0fa24c /libs/androidfw/FileStream.cpp
parent99bbe52e8f5ea0444a79703db09695d9e4222048 (diff)
fix(high contrast text): draw contrasting backgrounds when text changes color via Spans
We take into account the CharacterStyle spans that change the color of the text to be different than the original global Paint color. This matches the high contrast background to each span of text that is a different color. Also, fix the isHighContrastTextDark() function which was converting LAB wrong because of incorrect documentation (see b/343778621) Fix: 340552436 Flag: ACONFIG com.android.graphics.hwui.flags.high_contrast_text_small_text_rect TRUNKFOOD Test: atest frameworks/base/core/tests/coretests/src/android/text/LayoutTest.java && atest frameworks/base/core/tests/coretests/src/android/text/SpanColorsTest.java Change-Id: I8e9723409b8219ad9c869dc5a7c767d2ec669939
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions