[Android] Audio: clear marquee task on recycle

Geoffrey Métais git at videolan.org
Thu Feb 13 12:17:12 CET 2020


vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 13 12:15:17 2020 +0100| [afb82a5254efbcaf2ce5147c980061c027e097d9] | committer: Geoffrey Métais

Audio: clear marquee task on recycle

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt | 1 +
 1 file changed, 1 insertion(+)

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 a15744945..1eb402ff4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
@@ -256,6 +256,7 @@ class AudioBrowserAdapter @JvmOverloads constructor(
         }
 
         override fun recycle() {
+            handler.removeCallbacksAndMessages(null)
             binding.cover = if (cardSize == SHOW_IN_LIST && defaultCover != null) defaultCover else null
             binding.mediaCover.resetFade()
             binding.title.isSelected = false



More information about the Android mailing list