diff options
| author | Leon Scroggins III <scroggo@google.com> | 2018-04-13 11:57:08 -0400 |
|---|---|---|
| committer | Leon Scroggins III <scroggo@google.com> | 2018-04-13 13:12:49 -0400 |
| commit | 4534745f53e10952b706bd22fb0c2a29bcbb75e0 (patch) | |
| tree | 8ee31da6e358401607527f2e349d2b32bebb27a1 /docs/html/sdk/api_diff/15/changes | |
| parent | e5d97dd6f9e10c21568ae96a000e58834015bee9 (diff) | |
Fix rounding of padding in NinePatchDrawable
Bug: 73088142
Test: Test app at https://buganizer.corp.google.com/issues/73088142#comment6
Test: GridWidgetTest.testItemDecorationAndMarginsAndOpticalBounds
In computeBitmapSize, treat padding as a size in scaleFromDensity. This
results in rounding instead of truncating. This matches the way optical
insets are handled. It also matches the padding we would have gotten if
we had scaled at decode time.
Change-Id: I7d3a83ba824b8dc81187ce9b2d9889d4a87f88ac
Diffstat (limited to 'docs/html/sdk/api_diff/15/changes')
0 files changed, 0 insertions, 0 deletions
