Fix logic whether to showArtistPicture

This commit is contained in:
tzugen 2022-07-06 08:21:25 +02:00
parent 31a1fdace1
commit b11694d6a2
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 4 additions and 2 deletions

View File

@ -110,9 +110,11 @@ class ArtistRowBinder(
}
private fun showArtistPicture(): Boolean {
val isOffline = ActiveServerProvider.isOffline()
val isOnline = !ActiveServerProvider.isOffline()
val shouldShowArtistPicture = Settings.shouldShowArtistPicture
return (!isOffline && shouldShowArtistPicture) || Settings.useId3TagsOffline
val id3Enabled = (isOnline && Settings.shouldUseId3Tags) || Settings.useId3TagsOffline
return id3Enabled && shouldShowArtistPicture
}
/**