[Android] Deactivate folder preparsing in subs picker
Geoffrey Métais
git at videolan.org
Tue Aug 28 15:13:25 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug 28 15:12:02 2018 +0200| [bb24adf4a41d2de00fcfadd55b3c37d12e3f731a] | committer: Geoffrey Métais
Deactivate folder preparsing in subs picker
And fix folders not listed
Fix #641
> https://code.videolan.org/videolan/vlc-android/commit/bb24adf4a41d2de00fcfadd55b3c37d12e3f731a
---
vlc-android/src/org/videolan/vlc/providers/FilePickerProvider.kt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/providers/FilePickerProvider.kt b/vlc-android/src/org/videolan/vlc/providers/FilePickerProvider.kt
index 7e6eb5180..6def88e85 100644
--- a/vlc-android/src/org/videolan/vlc/providers/FilePickerProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/FilePickerProvider.kt
@@ -39,6 +39,8 @@ class FilePickerProvider(context: Context, dataset: LiveDataset<MediaLibraryItem
}
override fun addMedia(media: MediaLibraryItem) {
- if (media is MediaWrapper && media.type == MediaWrapper.TYPE_SUBTITLE) super.addMedia(media)
+ if (media is MediaWrapper && (media.type == MediaWrapper.TYPE_SUBTITLE || media.type == MediaWrapper.TYPE_DIR)) super.addMedia(media)
}
+
+ override suspend fun parseSubDirectories() {}
}
\ No newline at end of file
More information about the Android
mailing list