[Android] Clear cards cover on recycle

Geoffrey Métais git at videolan.org
Fri Aug 2 14:57:35 CEST 2019


vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 31 17:40:17 2019 +0200| [e53c69e32cb319ea77899a339b81f03a2059c181] | committer: Geoffrey Métais

Clear cards cover on recycle

(cherry picked from commit 13d62e01c8be662e180895609d4b35e8526b42be)

> https://code.videolan.org/videolan/vlc-android/commit/e53c69e32cb319ea77899a339b81f03a2059c181
---

 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