Skip to content

Commit 688d038

Browse files
raphlinusAndroid Git Automerger
authored andcommitted
am c01d104: Merge "Fix for bug 7400445 regression in background drawable" into jb-mr1-dev
* commit 'c01d1045ef6c79000afc6f07a74ee7963a2092ac': Fix for bug 7400445 regression in background drawable
2 parents 4bce83e + c01d104 commit 688d038

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphics/java/android/graphics/drawable/GradientDrawable.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,11 @@ private void computeOpacity() {
11911191
return;
11921192
}
11931193

1194+
if (mRadius > 0 || mRadiusArray != null) {
1195+
mOpaque = false;
1196+
return;
1197+
}
1198+
11941199
if (mStrokeWidth > 0 && !isOpaque(mStrokeColor)) {
11951200
mOpaque = false;
11961201
return;

0 commit comments

Comments
 (0)