[Android] Fix audio player small glitch when opening / closing

Nicolas Pomepuy git at videolan.org
Tue Jul 30 16:49:52 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Jul 30 08:38:23 2019 +0200| [23196a5f20f09c830518241df2b2b7121bde128f] | committer: Geoffrey Métais

Fix audio player small glitch when opening / closing

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index f0f20cd48..540828c33 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -404,7 +404,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, CoroutineS
     }
 
     private fun restoreHeaderButtonVisibilities() {
-        binding.progressBar.visibility = if (progressBarVisible) View.VISIBLE else View.GONE
+        binding.progressBar.visibility = if (progressBarVisible) View.VISIBLE else View.INVISIBLE
         val cl = binding.header
         TransitionManager.beginDelayedTransition(cl, AutoTransition().setDuration(200))
         ConstraintSet().apply {



More information about the Android mailing list