am c01d1045: Merge "Fix for bug 7400445 regression in background drawable" into jb-mr1-dev

* commit 'c01d1045ef6c79000afc6f07a74ee7963a2092ac':
  Fix for bug 7400445 regression in background drawable
This commit is contained in:
Raph Levien
2012-10-31 16:27:48 -07:00
committed by Android Git Automerger

View File

@@ -1191,6 +1191,11 @@ public class GradientDrawable extends Drawable {
return;
}
if (mRadius > 0 || mRadiusArray != null) {
mOpaque = false;
return;
}
if (mStrokeWidth > 0 && !isOpaque(mStrokeColor)) {
mOpaque = false;
return;