diff options
| author | Romain Guy <romainguy@android.com> | 2009-09-15 16:39:08 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@android.com> | 2009-09-15 16:39:08 -0700 |
| commit | ffff38420c8b4713470011b909ae2238b5675f7c (patch) | |
| tree | 2b5110c2455611c094d942373a48074cc3d6232e /graphics | |
| parent | 617d470dffdc0b5fa24454b0e07438ad0f4721f9 (diff) | |
| download | frameworks_base-ffff38420c8b4713470011b909ae2238b5675f7c.zip frameworks_base-ffff38420c8b4713470011b909ae2238b5675f7c.tar.gz frameworks_base-ffff38420c8b4713470011b909ae2238b5675f7c.tar.bz2 | |
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
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/java/android/graphics/drawable/BitmapDrawable.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/BitmapDrawable.java b/graphics/java/android/graphics/drawable/BitmapDrawable.java index e82f297..f42788e 100644 --- a/graphics/java/android/graphics/drawable/BitmapDrawable.java +++ b/graphics/java/android/graphics/drawable/BitmapDrawable.java @@ -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; |
