diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/GradientDrawable.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/GradientDrawable.java b/graphics/java/android/graphics/drawable/GradientDrawable.java index 4a4a06b..f82acc3 100644 --- a/graphics/java/android/graphics/drawable/GradientDrawable.java +++ b/graphics/java/android/graphics/drawable/GradientDrawable.java @@ -818,7 +818,8 @@ public class GradientDrawable extends Drawable { @Override public int getOpacity() { - return mGradientState.mOpaque ? PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT; + return (mAlpha == 255 && mGradientState.mOpaque) ? + PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT; } @Override |