diff options
author | Mihai Popa <popam@google.com> | 2018-06-29 13:42:44 +0100 |
---|---|---|
committer | Mihai Popa <popam@google.com> | 2018-07-02 12:58:22 +0000 |
commit | f03b7543c7e0f142f0c57ed8f791523293889407 (patch) | |
tree | cba160f91c9fcfdc76fdd07a20a0161519dec694 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ce77407144346c6fad679a4297910eea07d0d601 (diff) |
Allow 0sp text size in xml for TextView
Before this CL, when TextView's textSize attribute was set to 0sp in
XML, the text would still be visible on the screen, as the actual
textSize set was non zero. On the other hand, if the text size was set
to 0sp programmatically, the text would not be visible. This was a P
regression, as on O the text would be invisible in both cases.
This CL fixes the attribute reading stage in TextView, allowing the
application of a 0 text size on the view.
Bug: 110251171
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I3798361e182f45a67cd0a69d40e09e559375aa20
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions