Basically, I am trying to convert a URI -> ImageView (via Picasso) -> Drawable.
var tempimg = ImageView(this)
var a: String
var d: Drawable
a = pageURIFd + page
Picasso.get().load(a).into(tempimg)
d = tempimg.getDrawable() as BitmapDrawable
bitmaps.add(d)
I know the ImageView is not empty after Picasso loads it because I can display the image. But the line below is returning null. I'm trying to add each drawable to an arraylist.
d = tempimg.getDrawable() as BitmapDrawable