[Android] Folder media can't be sorted by last modified date

Geoffrey Métais git at videolan.org
Fri Jan 18 13:59:17 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 18 11:00:41 2019 +0100| [947f1672a07824ee583af5a4f365074ece1a14aa] | committer: Geoffrey Métais

Folder media can't be sorted by last modified date

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

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

diff --git a/vlc-android/src/org/videolan/vlc/viewmodels/VideosModel.kt b/vlc-android/src/org/videolan/vlc/viewmodels/VideosModel.kt
index 96c0d4e36..d224f2916 100644
--- a/vlc-android/src/org/videolan/vlc/viewmodels/VideosModel.kt
+++ b/vlc-android/src/org/videolan/vlc/viewmodels/VideosModel.kt
@@ -44,7 +44,7 @@ open class VideosModel(context: Context, private val group: String?, val folder
     override val sortKey = "${super.sortKey}_$group"
     override fun canSortByFileNameName() = true
     override fun canSortByDuration() = true
-    override fun canSortByLastModified() = true
+    override fun canSortByLastModified() = folder == null
 
     private val thumbObs = Observer<MediaWrapper> { media -> if (!updateActor.isClosedForSend) updateActor.offer(MediaUpdate(listOf(media!!))) }
 



More information about the Android mailing list