commit | 0aa004c3cff627167e302d7320629ccb41cab585 | [log] [tgz] |
---|---|---|
author | Deepanshu Gupta <deepanshu@google.com> | Wed Apr 29 10:44:51 2015 -0700 |
committer | Deepanshu Gupta <deepanshu@google.com> | Fri May 01 21:38:02 2015 +0000 |
tree | 596ad996cf357fec2eca9669a600a3b30d65e879 | |
parent | a00cf1276bf3d7b0b56d76a11f85cc73c2f4b882 [diff] |
LayoutLib: fix crash when shadow size <=0. Drawing empty rects results in IllegalArgumentException on Mac JRE 1.6. Prevent that by checking the bounds before attempting to draw the rect. Bug: 20687353 Change-Id: I45f48ee125196480bb6510cc49b24d2122bc3e48