[Android] Behavior uniformization between albums and browser

Nicolas Pomepuy git at videolan.org
Wed Jan 12 11:34:43 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jan 10 14:29:27 2022 +0100| [8801a8f8261180b3f29206fc8264c2a64c08f00e] | committer: Nicolas Pomepuy

Behavior uniformization between albums and browser

Fixes #2257

> https://code.videolan.org/videolan/vlc-android/commit/8801a8f8261180b3f29206fc8264c2a64c08f00e
---

 .../vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index 3acd9ae49..2da2acf07 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -495,7 +495,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
         } else {
             mediaWrapper.removeFlags(MediaWrapper.MEDIA_FORCE_AUDIO)
             if (mediaWrapper.type == MediaWrapper.TYPE_DIR) browse(mediaWrapper, true)
-            else MediaUtils.openMedia(v.context, mediaWrapper)
+            else MediaUtils.openList(v.context, viewModel.dataset.getList().filter { it.itemType !=  MediaWrapper.TYPE_DIR}.map { it as MediaWrapper }, position)
         }
     }
 



More information about the Android mailing list