[Android] Fix some indexed folders not displayed in preference browser because uri is encoded
Sébastien Toque
git at videolan.org
Fri Jul 9 09:22:39 UTC 2021
vlc-android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Jul 4 10:18:13 2021 +0200| [94ea050ed12abd3171e1fdd3fd6109030cc5b160] | committer: Nicolas Pomepuy
Fix some indexed folders not displayed in preference browser because uri is encoded
> https://code.videolan.org/videolan/vlc-android/commit/94ea050ed12abd3171e1fdd3fd6109030cc5b160
---
.../src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
index 5d75d4f5c..79aa8bfae 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
@@ -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)
More information about the Android
mailing list