Fix audio player small glitch when opening / closing

(cherry picked from commit 23196a5f20)
This commit is contained in:
Nicolas Pomepuy
2019-07-30 08:38:23 +02:00
committed by Geoffrey Métais
parent 0201e48839
commit f8d52fadfa

View File

@@ -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 {