Skip to content
Snippets Groups Projects
Commit 94ea050e authored by Sébastien Toque's avatar Sébastien Toque Committed by Nicolas Pomepuy
Browse files

Fix some indexed folders not displayed in preference browser because uri is encoded

parent d56af5c2
No related branches found
No related tags found
1 merge request!1024Fix some indexed folders not displayed in preference browser because uri is encoded
Pipeline #115341 passed with stage
in 5 minutes and 14 seconds
......@@ -58,7 +58,7 @@ class StorageBrowserAdapter(browserContainer: BrowserContainer<MediaLibraryItem>
val title = storage.title
if (storage.itemType == MediaLibraryItem.TYPE_MEDIA) storage = Storage((storage as MediaWrapper).uri)
val uri = (storage as Storage).uri
var storagePath = if (uri.scheme.isSchemeFile()) uri.path ?: "" else uri.toString()
var storagePath = if (uri.scheme.isSchemeFile()) uri.path ?: "" else Uri.decode(uri.toString())
if (!storagePath.endsWith("/")) storagePath += "/"
if (storage.title.isNullOrBlank()) storage.title = title
vh.bindingContainer.setItem(storage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment