Query outline on background size change
Background bounds are updated out of sync with View bounds, so query
as they change.
Change-Id: I9c94df17bac42dfcd4bb93b31903b59ebb58204b
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 3b2e1d1..f1a0913 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -14996,6 +14996,7 @@
if (mBackgroundSizeChanged) {
background.setBounds(0, 0, mRight - mLeft, mBottom - mTop);
mBackgroundSizeChanged = false;
+ invalidateOutline();
}
// Attempt to use a display list if requested.
diff --git a/libs/hwui/Outline.h b/libs/hwui/Outline.h
index 5e7f899..024bdfd 100644
--- a/libs/hwui/Outline.h
+++ b/libs/hwui/Outline.h
@@ -30,7 +30,7 @@
, mType(kOutlineType_None)
, mRadius(0) {}
- void setRoundRect(int left, int top, int right, int bottom, int radius) {
+ void setRoundRect(int left, int top, int right, int bottom, float radius) {
mType = kOutlineType_RoundRect;
mBounds.set(left, top, right, bottom);
mRadius = radius;