commit | 3f76549a1e9223e20a9f8a2bfed79b97c2e66bf1 | [log] [tgz] |
---|---|---|
author | Diego Perez <diegoperez@google.com> | Tue Jun 07 16:55:21 2016 +0100 |
committer | Diego Perez <diegoperez@google.com> | Tue Jun 21 14:48:13 2016 +0000 |
tree | 78dd61794b66864faac18f4063cc23b68fba7668 | |
parent | 2bef7f59b332138d98b3af758717b01db82e049b [diff] |
Avoid radius 0 gradient painting If the radius is 0, do not try to paint the shadow. In some views, a 0 radius for the outline might be returned causing an exception when painting the gradient. In those cases, simply disable the shadow. Bug: http://b.android.com/207664 Change-Id: Idb937083d42ca02bbace843b881f61aa88fe47f2 (cherry picked from commit 5bc40214817fc6bd4ee541763d40522ae94f1d82)