summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/18
diff options
context:
space:
mode:
authorNader Jawad <njawad@google.com>2018-04-05 10:29:47 -0700
committerNader Jawad <njawad@google.com>2018-04-05 10:43:28 -0700
commit5a22b40803b250d7e6ea3776be5023d5f82764f4 (patch)
tree5cb54f864e1a3bfe2c72d845de0c5595ba9dfb3c /docs/html/sdk/api_diff/18
parent424c84ce16d1557a009fd26d7aa5817a3518f7c0 (diff)
Added line to mark the mGradientIsDirty flag to true in order to
recompute GradientDrawable drawing bounds Updated logic in GradientDrawable#setStrokeInternal to set the mGradientIsDirty flag to true when the stroke is changed in order to have ensureValidRect be called and recompute the drawing bounds configured on mRect. In the event that a stroke width is defined, the drawing rect must be inset by half the stroke width. Otherwise the stroke will be drawn at the edges of the boundary and be clipped. Bug: 70915849 Test: Ran test app provided in bug and confirmed that modifying the strokeWidth on a pre-existing GradientDrawable matches the behavior of a brand new GradientDrawable instance used as the background on a view Change-Id: Icaa53d936589a9b4790f89e894f1d745c6e4fe43
Diffstat (limited to 'docs/html/sdk/api_diff/18')
0 files changed, 0 insertions, 0 deletions