[Android] Videos: get all acordingly to current sorting

Geoffrey Métais git at videolan.org
Fri Oct 4 16:29:00 CEST 2019


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

Videos: get all acordingly to current sorting

(cherry picked from commit a154989950b393c0aa8fd808a5bff4c023c345f5)

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

 .../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