OSDN Git Service

Reorder the drawing of underline/stroke and text
authorSeigo Nonaka <nona@google.com>
Mon, 21 May 2018 21:56:40 +0000 (14:56 -0700)
committerSeigo Nonaka <nona@google.com>
Mon, 21 May 2018 21:56:40 +0000 (14:56 -0700)
commit50fe78805d9873d28d4ff017f0e60534dcf2783f
tree315ee88c5e1cf2ffe81f1a249dfdbb1494f15968
parent1d4fe4323c0863c6aa9f78ea385a5f49e41b7258
Reorder the drawing of underline/stroke and text

The underline and stroke should be top of the text.
This regression happens on O-MR1 and the root cause is still unknown,
but the drawning underline/stroke should do before drawing text.

Bug: 79906191
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: Idc2f99b9c0fa125af331e496da8daa326d14bfac
core/java/android/text/TextLine.java