diff options
author | Siyamed Sinir <siyamed@google.com> | 2017-08-03 22:01:56 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2017-08-07 15:35:06 -0700 |
commit | a19cd51d2c511777201c09e258a4e8286249fd9a (patch) | |
tree | 8c05a1d074fa5ec2859e92e14616253ffc985cb4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 370767083943cff62c6906dc362452356f2738b1 (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
Fixes: 64372088
Bug: 64312574
Change-Id: I8ea6697d29da2ccbb433b64f17b4d1d6f254e8e1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions