fixed lint warning

This commit is contained in:
Holger Müller 2022-06-21 20:38:35 +02:00
parent 603654c262
commit 18c31a5704
No known key found for this signature in database
GPG Key ID: 016F07C42F7AC2B1
1 changed files with 2 additions and 2 deletions

View File

@ -534,8 +534,8 @@ class AutoMediaBrowserCallback(var player: Player) :
val songs = listSongsInMusicService(id, name)
if (songs != null) {
if (songs.getChildren(includeDirs = true, includeFiles = false).count() == 0 &&
songs.getChildren(includeDirs = false, includeFiles = true).count() > 0
if (songs.getChildren(includeDirs = true, includeFiles = false).isEmpty() &&
songs.getChildren(includeDirs = false, includeFiles = true).isNotEmpty()
)
mediaItems.addPlayAllItem(listOf(MEDIA_ALBUM_ITEM, id, name).joinToString("|"))