From 8455fc2b810d6f57fc5e523864eaddffc6967d5a Mon Sep 17 00:00:00 2001 From: deeppandya Date: Fri, 22 Nov 2024 18:56:25 -0500 Subject: [PATCH] Update filepath to load the image --- .../chrome/browser/playlist/kotlin/util/PlaylistUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/java/org/chromium/chrome/browser/playlist/kotlin/util/PlaylistUtils.kt b/android/java/org/chromium/chrome/browser/playlist/kotlin/util/PlaylistUtils.kt index 350694c40c77..e4ca193b128a 100644 --- a/android/java/org/chromium/chrome/browser/playlist/kotlin/util/PlaylistUtils.kt +++ b/android/java/org/chromium/chrome/browser/playlist/kotlin/util/PlaylistUtils.kt @@ -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)