DEV Community

Discussion on: Kotlin and retrofit network calls

Collapse
 
petestmart profile image
Pete St. Martin • Edited

Is anyone else having an issue getting the images (the movie posters) to load?

I would post my code, but I'm not sure where this is even coming from. I'm combing over it and trying different things in different places.

Collapse
 
petestmart profile image
Pete St. Martin • Edited

Figured it out!

In the RecyclerView adapter

Glide.with(itemView.context).load("http://image.tmdb.org/t/p/w500${movie.poster_path}").into(photo)

Should be:

Glide.with(itemView.context).load("https://image.tmdb.org/t/p/w500${movie.poster_path}").into(photo)

I don't know if things have changed, but the http should be an https or nothing will send.