I'm sure, my code gets not null value for return:
fun getBitmap(id: Int): Bitmap{
if (!(id in bitmapStorage))
bitmapStorage.put(id, BitmapFactory.decodeResource(resources, id))
return bitmapStorage.get(id)
}
What's the right way to return Bitmap type instead of Bitmap??
!!, as Bitmap or something else?