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
1 file changed
tree: 7d8867101d4dbab0db0d79d41bd25eb72d17c751
  1. .idea/
  2. bridge/
  3. create/
  4. rename_font/
  5. .gitignore
  6. Android.mk
  7. README