diff options
author | Seigo Nonaka <nona@google.com> | 2018-03-23 17:22:54 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2018-03-23 18:19:06 -0700 |
commit | 53145635e4fd724208e01db1ef6187a2212d6090 (patch) | |
tree | f6b3a8c4f62afc6fdf36091f8035faed0f0903ba /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5558126b11bdef5fe7c525e7336ddcb6be10107c (diff) |
Fix BoringLayout with PrecomputedText
The special logic for PrecomputedText in BoringLayout has problem.
The special logic is no longer necessary since TextLine is now aware of
PrecomputedText. So, just removing special logic from BoringLayout.
On the other hand, the metrics parameters check in TextLine has removed
Ie73bce52c6c673cda58973ddad04627a7cf2e5e9, but that was wrong. TextLine
can be used by BoringLayout too. Thus, need to reject PrecomputedText
if the given TextPaint is not compatible with given param.
Bug: 76227465
Test: atest CtsWidgetTestCases:EditTextTest
CtsWidgetTestCases:TextViewFadingEdgeTest
FrameworksCoreTests:TextViewFallbackLineSpacingTest
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
CtsTextTestCases FrameworksCoreTests:android.text
CtsWidgetTestCases:TextViewPrecomputedTextTest
Change-Id: I172b5f655402e797b53b9667b49cb4ab89ec0dc0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions