Skip to content

Commit

Permalink
Update filepath to load the image
Browse files Browse the repository at this point in the history
  • Loading branch information
deeppandya committed Nov 22, 2024
1 parent 5cbcc03 commit 8455fc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object PlaylistUtils {

fun loadPlaylistImage(imageView:ImageView, imagePath:String, placeholderRes: Int) {
PostTask.postTask(TaskTraits.UI_DEFAULT) {
val imgFile = File(imagePath)
val imgFile = File(imagePath.replace("file://", ""))
if (imgFile.exists()) {
val bitmap = BitmapFactory.decodeFile(imgFile.absolutePath)
imageView.setImageBitmap(bitmap)
Expand Down

0 comments on commit 8455fc2

Please sign in to comment.