mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-16 11:41:16 +01:00
fixed lint warning
This commit is contained in:
parent
603654c262
commit
18c31a5704
@ -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("|"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user