Problems with Lollipop - black image

Author: zplesacCreated Jan 5, 2015Updated Apr 22, 2019
Labelsbug

Hi,

I'm facing a quite interesting problem on Android Lollipop - if I set Bitmap to CircleImageView with setImageBitmap() method, it just shows black image: monosnap 2015-01-05 16-19-32

Image is selected from Gallery app, and I can view it in debug mode (bitmap is not corrupted).

Everything is working OK with default ImageView: monosnap 2015-01-05 16-23-12

This behaviour is random - some images are working correctly, some are not, and it occurs only on Android Lollipop.

Do you have any suggestions? I've checked app logs, everything is working OK - no OutOfMemory exceptions or something similar.

Source: hdodenhof/CircleImageView