summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tyler Freeman <fuego@google.com> 2024-03-07 00:41:17 +0000
committer Tyler Freeman <fuego@google.com> 2024-03-07 00:49:46 +0000
commit5b942e49df5f2670d5bc50ce1caa49691e03ad13 (patch)
treeae6248183104faa165370f3af190dbd70f7e1a48 /libs/androidfw/StringPool.cpp
parent1176b9ba9e4a83abf89d5ce13e1cadecf63afaaf (diff)
fix(high contrast text): fix text cursor, spellcheck, etc not visible
Since we now draw a solid background rectangle behind the text, the background draws over the text position cursor, underline squiggles for spelling errors, etc. To fix this, we just draw those things on top of all the text, its background, and selection highlights. Bug: 186567103 Flag: ACONFIG com.android.graphics.hwui.flags.high_contrast_text_small_text_rect TEAMFOOD Test: atest core/tests/coretests/src/android/text/LayoutTest.java Test: manual 1. adb shell setenforce 0 && adb shell setprop persist.device_config.aconfig_flags.accessibility.com.android.graphics.hwui.flags.high_contrast_text_small_text_rect true && adb shell stop && adb shell start 2. Settings -> Accessibility -> Display Size and Text 3. Turn on High Contrast Text 4. Blinking cursor and error squiggles should be visible. Change-Id: I367ffcbdfc3ca35f15679fac06fa8c03309facd3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions