summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSiyamed Sinir <siyamed@google.com>2017-08-21 18:50:45 -0700
committerSiyamed Sinir <siyamed@google.com>2017-08-21 19:22:58 -0700
commit261118009def6217cdd70e3b3e76ef4648a223f5 (patch)
treec034e0c41a8ce20fdc46bbf7daf474ff96141b55 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent72093af5c244558224f795b49c46aa4e495f10a4 (diff)
StaticLayout capped height should be 0 when maxLines=0
Previously we added mMaxLineHeight to track the line height at the maxLines value. However when maxLines is set to zero, mMaxLineHeight is not calculated and remains 0. When maxLines is set to zero, the capped height of the layout should be 0. Test: Added a test case to coretests/StaticLayoutTest Test: bit FrameworksCoreTests:android.text.StaticLayoutTest Test: bit FrameworksCoreTests:android.text.DynamicLayoutTest Test: bit FrameworksCoreTests:android.text.StaticLayoutLineBreakingTest Test: bit FrameworksCoreTests:android.text.StaticLayoutBidiTest Test: bit FrameworksCoreTests:android.text.StaticLayoutTextMeasuringTest Test: bit FrameworksCoreTests:android.text.StaticLayoutDirectionsTest Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Bug: 64822158 Change-Id: Id9240ee7b893f8af9cd0d91329617c24da80c7d2 Merged-In: a8d982d6c850c8b3822d9ad01f8579c003da45db (cherry picked from commit a8d982d6c850c8b3822d9ad01f8579c003da45db)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions