Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c39c6d0 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 25162 into eclair

* changes:
  Build the BitmapShader if it hasn't been built yet.
parents d1d67782 ffff3842
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;