Skip to content

Commit

Permalink
Merge pull request #371 from moagrius/issue/221
Browse files Browse the repository at this point in the history
issue-221 dont draw recycled bitmaps
  • Loading branch information
moagrius authored Nov 11, 2016
2 parents 4b8248a + 3e453a0 commit 9b6050a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tileview/src/main/java/com/qozix/tileview/tiles/Tile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
}
Expand Down

0 comments on commit 9b6050a

Please sign in to comment.