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 <philippe@ud2.org>
This commit is contained in:
Philippe Daouadi 2022-02-19 13:19:21 +01:00
parent 00dc87d5df
commit d03b633eeb
No known key found for this signature in database
GPG Key ID: E188678D9F0A28BF
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ open class TrackCollectionFragment : MultiListFragment<MusicDirectory.Child>() {
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
}