summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/java/android/view/View.java1
-rw-r--r--libs/hwui/Outline.h2
2 files changed, 2 insertions, 1 deletions
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 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
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 @@ public:
, 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;