[Android] Browers: prepasing respects browsing flags

Geoffrey Métais git at videolan.org
Tue Aug 6 14:28:06 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug  6 14:27:15 2019 +0200| [0ee827e19fcfc880ae9705bc434aca1928a450bc] | committer: Geoffrey Métais

Browers: prepasing respects browsing flags

hidden files were always ignored.

> https://code.videolan.org/videolan/vlc-android/commit/0ee827e19fcfc880ae9705bc434aca1928a450bc
---

 vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.kt    | 1 -
 .../src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt        | 3 +--
 vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt          | 2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.kt b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.kt
index 160d76bbe..c80929248 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.kt
@@ -162,7 +162,6 @@ open class FileBrowserFragment : BaseBrowserFragment() {
         })
     }
 
-
     private fun browseOtgDevice(uri: Uri, title: String) {
         val mw = MLServiceLocator.getAbstractMediaWrapper(uri)
         mw.type = AbstractMediaWrapper.TYPE_DIR
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
index 73493ad56..c0a42f52a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
@@ -151,8 +151,7 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
             // No break because need VLCInstance.restart();
             "opengl", "chroma_format", "custom_libvlc_options", "deblocking", "enable_frame_skip", "enable_time_stretching_audio", "enable_verbose_mode" -> {
                 VLCInstance.restart()
-                if (activity != null)
-                    (activity as PreferencesActivity).restartMediaPlayer()
+                (activity as? PreferencesActivity)?.restartMediaPlayer()
             }
         }
     }
diff --git a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
index 215b285b3..3636f31a3 100644
--- a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -196,7 +196,7 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
                     }
                     // request parsing
                     browserChannel = Channel(Channel.UNLIMITED)
-                    mediabrowser?.browse(current.uri, 0)
+                    mediabrowser?.browse(current.uri, getFlags())
                     // retrieve subitems
                     for (media in browserChannel) {
                         val mw = findMedia(media) ?: continue



More information about the Android mailing list