OSDN Git Service

Set StaticLayout.maxLines only when ellipsize is set
authorSiyamed Sinir <siyamed@google.com>
Fri, 27 May 2016 01:25:26 +0000 (18:25 -0700)
committerSiyamed Sinir <siyamed@google.com>
Fri, 27 May 2016 01:33:33 +0000 (18:33 -0700)
commit24aba4b9e92d2abb3963974b9506681fda08e313
tree55fc8fba0827b6a4e41cbdbf0f5a3fb09f379c4a
parent0f6363e8b3b091508181ea6cef5f5f87a4f75016
Set StaticLayout.maxLines only when ellipsize is set

A partial revert for the CL I5dbc48a6c7f0f4ac4c693d5c95f0a99b989e07f4.
The mentioned CL tried to always set the maxLines attribute of
StaticLayout. However this caused regressions at certain points.

Bug: 28885989
Bug: 28468120
Change-Id: Ic09cb194c8811a06b5d53de50bfb77938b91b88d
core/java/android/widget/TextView.java