summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tyler Freeman <fuego@google.com> 2023-10-19 22:48:34 +0000
committer Tyler Freeman <fuego@google.com> 2024-01-03 18:31:08 +0000
commitdcd164c25475885d91303811572ddc71dde91788 (patch)
tree0c866045d41c015aea3bd13b2cce8ca0863f1f25 /libs/androidfw/StringPool.cpp
parent6b061bbd0eb4bda94b4c81f94f4108ad247f6d2f (diff)
fix(high contrast text): fix grey text sometimes getting lighter when it should get darker and vice-versa
Use perceptual luminance instead of RGB heuristic to decide to lighten or darken. Bug: 186567103 Test: manual 1. adb shell setenforce 0 && adb shell setprop persist.device_config.aconfig_flags.accessibility.com.android.graphics.hwui.flags.high_contrast_text_luminance true && adb shell stop && adb shell start Change-Id: Ief7ae6c10e1043694ffc10b1d827ebeaada61131
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions