diff options
author | Siyamed Sinir <siyamed@google.com> | 2017-08-03 22:01:56 -0700 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2017-08-21 19:20:50 -0700 |
commit | 72093af5c244558224f795b49c46aa4e495f10a4 (patch) | |
tree | a39e961962c4271dd5468c1cba6e4227be966180 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | f144f6ecd9386eba9cb516bec42c07295e3f9765 (diff) |
Reset StaticLayout.mEllipsized during generate()
StaticLayout.mEllipsized and mMaxLineHeight was set for proper
calculation of static ellipsized text height. However, since
DynamicLayout uses a static instance of StaticLayout, and nobody reset
the mEllipsized, this caused configuration discrepancies for different
DynamicLayout instances.
Test: bit -t CtsTextTestCases:android.text.cts.DynamicLayoutTest
Test: bit -t CtsTextTestCases:android.text.cts.StaticLayoutTest
Bug: 64372088
Change-Id: I8ea6697d29da2ccbb433b64f17b4d1d6f254e8e1
Merged-In: a19cd51d2c511777201c09e258a4e8286249fd9a
(cherry picked from commit a19cd51d2c511777201c09e258a4e8286249fd9a)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions