Skip to content

Commit

Permalink
Fixed IllegalState when mWitdth has 0 value on setting cover bitmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
iammert committed Nov 1, 2015
1 parent d9ddeb4 commit 1b64bdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ public boolean onTouchEvent(MotionEvent event) {

public void setCoverImage(Bitmap mBitmapCoverImage){
this.mBitmapCoverImage = mBitmapCoverImage;
scaleCoverBitmap(mBitmapCoverImage);
if(mWidth > 0)
scaleCoverBitmap(mBitmapCoverImage);
}

public void setCoverImage(int coverDrawable){
Expand Down

0 comments on commit 1b64bdd

Please sign in to comment.