* commit '13c06d6c91e67962b7ffdf92c56e3b01125e4a8d': Fix for shadows on theme editor
This commit is contained in:
@@ -23,6 +23,8 @@ import com.android.tools.layoutlib.annotations.LayoutlibDelegate;
|
|||||||
|
|
||||||
import android.graphics.Shader.TileMode;
|
import android.graphics.Shader.TileMode;
|
||||||
|
|
||||||
|
import java.awt.image.ColorModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delegate implementing the native methods of android.graphics.LinearGradient
|
* Delegate implementing the native methods of android.graphics.LinearGradient
|
||||||
*
|
*
|
||||||
@@ -158,7 +160,7 @@ public final class LinearGradient_Delegate extends Gradient_Delegate {
|
|||||||
java.awt.image.ColorModel colorModel) {
|
java.awt.image.ColorModel colorModel) {
|
||||||
mCanvasMatrix = canvasMatrix;
|
mCanvasMatrix = canvasMatrix;
|
||||||
mLocalMatrix = localMatrix;
|
mLocalMatrix = localMatrix;
|
||||||
mColorModel = colorModel;
|
mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ import com.android.tools.layoutlib.annotations.LayoutlibDelegate;
|
|||||||
|
|
||||||
import android.graphics.Shader.TileMode;
|
import android.graphics.Shader.TileMode;
|
||||||
|
|
||||||
|
import java.awt.image.ColorModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delegate implementing the native methods of android.graphics.RadialGradient
|
* Delegate implementing the native methods of android.graphics.RadialGradient
|
||||||
*
|
*
|
||||||
@@ -146,7 +148,7 @@ public class RadialGradient_Delegate extends Gradient_Delegate {
|
|||||||
java.awt.image.ColorModel colorModel) {
|
java.awt.image.ColorModel colorModel) {
|
||||||
mCanvasMatrix = canvasMatrix;
|
mCanvasMatrix = canvasMatrix;
|
||||||
mLocalMatrix = localMatrix;
|
mLocalMatrix = localMatrix;
|
||||||
mColorModel = colorModel;
|
mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user