Merge pull request #313 from ogarcia/fix-unknown-image
Fix fatal error loading unknown album cover
This commit is contained in:
commit
bd3e4df805
|
@ -120,11 +120,11 @@ public class LegacyImageLoader implements Runnable, ImageLoader {
|
|||
}
|
||||
|
||||
private void createLargeUnknownImage(Context context) {
|
||||
BitmapDrawable drawable = (BitmapDrawable) context.getResources().getDrawable(R.drawable.unknown_album);
|
||||
Drawable drawable = context.getResources().getDrawable(R.drawable.unknown_album);
|
||||
Log.i(TAG, "createLargeUnknownImage");
|
||||
|
||||
if (drawable != null) {
|
||||
largeUnknownImage = Util.scaleBitmap(drawable.getBitmap(), imageSizeLarge);
|
||||
largeUnknownImage = Util.createBitmapFromDrawable(drawable);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue