[Android] Videos: get all acordingly to current sorting

Geoffrey Métais git at videolan.org
Fri Oct 4 11:19:49 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct  4 11:19:15 2019 +0200| [a154989950b393c0aa8fd808a5bff4c023c345f5] | committer: Geoffrey Métais

Videos: get all acordingly to current sorting

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

 .../src/org/videolan/vlc/providers/medialibrary/VideosProvider.kt       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideosProvider.kt b/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideosProvider.kt
index db43daf08..b754f48b0 100644
--- a/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideosProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideosProvider.kt
@@ -62,6 +62,6 @@ class VideosProvider(val folder : AbstractFolder?, val group: AbstractVideoGroup
     override fun getAll(): Array<AbstractMediaWrapper> = when {
         folder !== null -> folder.getAll(AbstractFolder.TYPE_FOLDER_VIDEO, sort, desc).toTypedArray()
         group !== null -> group.getAll(sort, desc).toTypedArray()
-        else -> medialibrary.videos
+        else -> medialibrary.getVideos(sort, desc)
     }
 }



More information about the Android mailing list