Skip to content

Commit 9b6050a

Browse files
authored
Merge pull request #371 from moagrius/issue/221
issue-221 dont draw recycled bitmaps
2 parents 4b8248a + 3e453a0 commit 9b6050a

File tree

1 file changed

+1
-1
lines changed
  • tileview/src/main/java/com/qozix/tileview/tiles

1 file changed

+1
-1
lines changed

tileview/src/main/java/com/qozix/tileview/tiles/Tile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void reset() {
264264
* @param canvas The canvas the tile's bitmap should be drawn into
265265
*/
266266
public void draw( Canvas canvas ) {
267-
if( mBitmap != null ) {
267+
if( mBitmap != null && !mBitmap.isRecycled() ) {
268268
canvas.drawBitmap( mBitmap, mIntrinsicRect, mRelativeRect, getPaint() );
269269
}
270270
}

0 commit comments

Comments
 (0)