Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 761d0f54 authored by chenjean's avatar chenjean Committed by Jean Chen
Browse files

fix(HCT): High Contrast Font threshold value is different

NO_IFTTT= fix the threshold is different with DrawTextFunctor.h

Bug: 394359791
Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect
Test: atest core/tests/coretests/src/android/text/LayoutTest.java
Change-Id: I121f28aab8a5a72b683f83c5233d81f3c0adb37e
parent 107fe807
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -672,7 +672,7 @@ public abstract class Layout {
        // LINT.IfChange(hct_darken)
        var lab = new double[3];
        ColorUtils.colorToLAB(color, lab);
        return lab[0] < 50.0;
        return lab[0] <= 50.0;
        // LINT.ThenChange(/libs/hwui/hwui/DrawTextFunctor.h:hct_darken)
    }