mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 07:20:30 +05:30
Merge pull request #3111 from Bnyro/master
Fix crash when creating a playlist (closes #3102)
This commit is contained in:
commit
f20ab5b57a
@ -39,7 +39,7 @@ class PlaylistsAdapter(
|
||||
val playlist = playlists[position]
|
||||
holder.binding.apply {
|
||||
// set imageview drawable as empty playlist if imageview empty
|
||||
if (playlist.thumbnail!!.split("/").size <= 4) {
|
||||
if (playlist.thumbnail.orEmpty().split("/").size <= 4) {
|
||||
playlistThumbnail.setImageResource(R.drawable.ic_empty_playlist)
|
||||
playlistThumbnail.setBackgroundColor(R.attr.colorSurface)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user