[Android] Show all settings now really show all files

Nicolas Pomepuy git at videolan.org
Tue May 26 10:19:50 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed May 20 14:32:17 2020 +0200| [374db4eb1b4d76babf75dc13339c584ebbae1859] | committer: Nicolas Pomepuy

Show all settings now really show all files

Fixes #787

> https://code.videolan.org/videolan/vlc-android/commit/374db4eb1b4d76babf75dc13339c584ebbae1859
---

 .../vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt b/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
index 1dfc8365a..40595b3ed 100644
--- a/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -116,6 +116,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
         if (mediabrowser == null) {
             registerCreator { MediaBrowser(VLCInstance.getInstance(context), null, browserHandler) }
             mediabrowser = get(this)
+            if (showAll) mediabrowser?.setIgnoreFileTypes(".")
         }
     }
 
@@ -305,6 +306,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
         val mw: MediaWrapper = MLServiceLocator.getAbstractMediaWrapper(media)
         media.release()
         if (!mw.isMedia()) {
+            if (showAll || mw.isBrowserMedia()) return mw
             if (mw.isBrowserMedia()) return mw
             else if (!showAll) return null
         }



More information about the Android mailing list