[Android] Clear cards cover on recycle
Geoffrey Métais
git at videolan.org
Thu Aug 1 14:33:19 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 31 17:40:17 2019 +0200| [13d62e01c8be662e180895609d4b35e8526b42be] | committer: Geoffrey Métais
Clear cards cover on recycle
> https://code.videolan.org/videolan/vlc-android/commit/13d62e01c8be662e180895609d4b35e8526b42be
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
index 7d6f40060..1ddefdcdc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
@@ -232,7 +232,7 @@ class AudioBrowserAdapter @JvmOverloads constructor(
}
override fun recycle() {
- if (defaultCover != null) binding.cover = defaultCover
+ binding.cover = if (cardSize == SHOW_IN_LIST && defaultCover != null) defaultCover else null
binding.title.text = ""
binding.subtitle.text = ""
}
More information about the Android
mailing list