am 9c39c6d0: Merge change 25162 into eclair
Merge commit '9c39c6d02fc31e18f3abafb89cc29520cb539cb8' into eclair-plus-aosp * commit '9c39c6d02fc31e18f3abafb89cc29520cb539cb8': Build the BitmapShader if it hasn't been built yet.
This commit is contained in:
@@ -271,7 +271,8 @@ public class BitmapDrawable extends Drawable {
|
||||
|
||||
public void setTileModeXY(Shader.TileMode xmode, Shader.TileMode ymode) {
|
||||
final BitmapState state = mBitmapState;
|
||||
if (state.mTileModeX != xmode || state.mTileModeY != ymode) {
|
||||
if (state.mPaint.getShader() == null ||
|
||||
state.mTileModeX != xmode || state.mTileModeY != ymode) {
|
||||
state.mTileModeX = xmode;
|
||||
state.mTileModeY = ymode;
|
||||
mRebuildShader = true;
|
||||
|
||||
Reference in New Issue
Block a user