[Android] Fix logic fail
Geoffrey Métais
git at videolan.org
Thu May 7 12:17:04 CEST 2020
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 4 15:05:21 2020 +0200| [e5291608ab13c6cf820e4f66228868304a01e9bc] | committer: Nicolas Pomepuy
Fix logic fail
> https://code.videolan.org/videolan/vlc-android/commit/e5291608ab13c6cf820e4f66228868304a01e9bc
---
.../src/org/videolan/vlc/providers/medialibrary/VideoGroupsProvider.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideoGroupsProvider.kt b/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideoGroupsProvider.kt
index 67c3cac9c..b638ea5b8 100644
--- a/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideoGroupsProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/VideoGroupsProvider.kt
@@ -26,5 +26,5 @@ class VideoGroupsProvider(context: Context, model: SortableModel) : Medialibrary
}
private fun Array<VideoGroup>.extractSingles() = map {
- if (it.mediaCount() == 1 || it.mediaCount() == 0) it.media(Medialibrary.SORT_DEFAULT, false, 1, 0)[0] else it
+ if (it.mediaCount() == 1) it.media(Medialibrary.SORT_DEFAULT, false, 1, 0)[0] else it
}.toTypedArray()
\ No newline at end of file
More information about the Android
mailing list