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

Commit c52ae862 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 9c39c6d0: Merge change 25162 into eclair

Merge commit '9c39c6d0' into eclair-plus-aosp

* commit '9c39c6d0':
  Build the BitmapShader if it hasn't been built yet.
parents 36f0e0e7 9c39c6d0
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;