Build the BitmapShader if it hasn't been built yet.

This was causing a bug in the InCall UI where the background would be stretched.

Change-Id: Ie25a7d09f4779f166e267b2f921d40441ce361d2
This commit is contained in:
Romain Guy
2009-09-15 16:39:08 -07:00
parent 617d470dff
commit ffff38420c

View File

@@ -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;