[Android] Mitigate audio text glitch
Nicolas Pomepuy
git at videolan.org
Fri Aug 2 14:57:49 CEST 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Aug 1 15:47:54 2019 +0200| [68f96d2acfa8a0865233cae264f3b86d04591553] | committer: Geoffrey Métais
Mitigate audio text glitch
(cherry picked from commit f4f16b1effb451081bb45ffb6141df57305d3ffe)
> https://code.videolan.org/videolan/vlc-android/commit/68f96d2acfa8a0865233cae264f3b86d04591553
---
vlc-android/res/layout/audio_browser_card_item.xml | 2 +-
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/vlc-android/res/layout/audio_browser_card_item.xml b/vlc-android/res/layout/audio_browser_card_item.xml
index 34f575638..b2f84c853 100644
--- a/vlc-android/res/layout/audio_browser_card_item.xml
+++ b/vlc-android/res/layout/audio_browser_card_item.xml
@@ -82,7 +82,7 @@
<!-- TextView must be set to singleLine
see https://code.google.com/p/android/issues/detail?id=33868 -->
- <ImageButton
+ <org.videolan.vlc.gui.view.FadableImageView
android:id="@+id/imageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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 2455c0590..07e499a2a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.kt
@@ -233,8 +233,6 @@ class AudioBrowserAdapter @JvmOverloads constructor(
override fun recycle() {
binding.cover = if (cardSize == SHOW_IN_LIST && defaultCover != null) defaultCover else null
- binding.title.text = ""
- binding.subtitle.text = ""
binding.mediaCover.resetFade()
}
@@ -271,8 +269,6 @@ class AudioBrowserAdapter @JvmOverloads constructor(
override fun recycle() {
if (defaultCover != null) binding.cover = defaultCover
- binding.title.text = ""
- binding.subtitle.text = ""
binding.mediaCover.resetFade()
}
More information about the Android
mailing list