From 3e453a071654c68341d029ecba5eff284093691a Mon Sep 17 00:00:00 2001 From: Mike Dunn Date: Thu, 10 Nov 2016 20:17:08 -0600 Subject: [PATCH] issue-221 dont draw recycled bitmaps --- tileview/src/main/java/com/qozix/tileview/tiles/Tile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tileview/src/main/java/com/qozix/tileview/tiles/Tile.java b/tileview/src/main/java/com/qozix/tileview/tiles/Tile.java index 85496907..e6aa97bb 100755 --- a/tileview/src/main/java/com/qozix/tileview/tiles/Tile.java +++ b/tileview/src/main/java/com/qozix/tileview/tiles/Tile.java @@ -264,7 +264,7 @@ void reset() { * @param canvas The canvas the tile's bitmap should be drawn into */ public void draw( Canvas canvas ) { - if( mBitmap != null ) { + if( mBitmap != null && !mBitmap.isRecycled() ) { canvas.drawBitmap( mBitmap, mIntrinsicRect, mRelativeRect, getPaint() ); } }