From d03b633eeb1dde45cbf377ed16d8a2324e39291e Mon Sep 17 00:00:00 2001 From: Philippe Daouadi Date: Sat, 19 Feb 2022 13:19:21 +0100 Subject: [PATCH] TrackCollectionFragment: fix play all button The button would not work because the entries are actually of the Album type instead of Entry. Signed-off-by: Philippe Daouadi --- .../org/moire/ultrasonic/fragment/TrackCollectionFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/TrackCollectionFragment.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/TrackCollectionFragment.kt index e9f398e2..50e3d6e7 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/TrackCollectionFragment.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/TrackCollectionFragment.kt @@ -276,7 +276,7 @@ open class TrackCollectionFragment : MultiListFragment() { var hasSubFolders = false for (item in viewAdapter.getCurrentList()) { - if (item is MusicDirectory.Entry && item.isDirectory) { + if (item is MusicDirectory.Child && item.isDirectory) { hasSubFolders = true break }