OSDN Git Service

Move underline thickness and position computation to Paint
authorRoozbeh Pournader <roozbeh@google.com>
Mon, 5 Jun 2017 22:57:14 +0000 (15:57 -0700)
committerRoozbeh Pournader <roozbeh@google.com>
Mon, 5 Jun 2017 22:57:14 +0000 (15:57 -0700)
commitfd8c22d513d92d547f883efc45a3dbcd9558f90a
treed631419d14c2172612ab147c0306a5fe00e8f713
parenta3112ceedc146005779dba2825af5484d55c8827
Move underline thickness and position computation to Paint

Also, in TextLine, fix underline color and thickness to come from the
underline info rather than the TextPaint object.

Bug: 32907446
Bug: 62353930
Test: Manual
Test: cts-tradefed run cts-dev --module CtsTextTestCases
Test: cts-tradefed run cts-dev --module CtsWidgetTestCases
Change-Id: I259e9cf635a7056ccd367baa77c03100c69e3b98
core/java/android/text/TextLine.java
core/java/android/text/TextPaint.java
graphics/java/android/graphics/Paint.java