commit | 2fba3387c31b675c419030145250e5be246c50b0 | [log] [tgz] |
---|---|---|
author | Gilles Debunne <debunne@google.com> | Mon Jun 11 17:46:24 2012 -0700 |
committer | Gilles Debunne <debunne@google.com> | Mon Jun 11 17:46:26 2012 -0700 |
tree | cc5c16431db6e07c9b6a5fc0cc453e1c0d96c7f0 | |
parent | 913bf80416a81f2783376939e7ad0b956975b05c [diff] |
Prevent a crash when maxLines is set to 0 Bug 6642222 Using setMaxLines(0) and setMinHeight(30) causes a crash because Layout#getLineRangeForDraw() returns a [0,0] interval in that case. Accessing the Direction in draw causes a NPE. Change-Id: If50f9b554e3cdc598a721b623992e9196982838c