[Android] Add protocol in Favorites cards
Nicolas Pomepuy
git at videolan.org
Wed Aug 5 14:25:23 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Aug 3 10:19:31 2020 +0200| [c801c8e7a5cd1d125861b656d8c667ade185ebfc] | committer: Nicolas Pomepuy
Add protocol in Favorites cards
Fixes #1435
> https://code.videolan.org/videolan/vlc-android/commit/c801c8e7a5cd1d125861b656d8c667ade185ebfc
---
.../vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.kt
index 19d943585..8881bf0a8 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.kt
@@ -151,7 +151,7 @@ open class BaseBrowserAdapter(val browserContainer: BrowserContainer<MediaLibrar
&& "content" != scheme
&& "otg" != scheme))
vh.bindingContainer.setFileName(if (media.type != MediaWrapper.TYPE_DIR && "file" == scheme) media.fileName else null)
- if (networkRoot) vh.bindingContainer.setProtocol(getProtocol(media))
+ if (networkRoot || (isFavorite && getProtocol(media)?.contains("file") == false)) vh.bindingContainer.setProtocol(getProtocol(media))
vh.bindingContainer.setCover(getIcon(media, specialIcons))
vh.selectView(multiSelectHelper.isSelected(position))
}
More information about the Android
mailing list