commit | dcd164c25475885d91303811572ddc71dde91788 | [log] [tgz] |
---|---|---|
author | Tyler Freeman <fuego@google.com> | Thu Oct 19 22:48:34 2023 +0000 |
committer | Tyler Freeman <fuego@google.com> | Wed Jan 03 18:31:08 2024 +0000 |
tree | 0c866045d41c015aea3bd13b2cce8ca0863f1f25 | |
parent | 6b061bbd0eb4bda94b4c81f94f4108ad247f6d2f [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