[Android] Fix audio tips stop indicator visibility on mobile

Nicolas Pomepuy git at videolan.org
Tue Jul 18 12:36:28 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jul 18 12:52:16 2023 +0200| [2330e5553fe17a8648e6e831d2b5565d1b6dfbf9] | committer: Nicolas Pomepuy

Fix audio tips stop indicator visibility on mobile

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

 .../src/org/videolan/vlc/gui/audio/AudioTipsDelegate.kt          | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioTipsDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioTipsDelegate.kt
index 0589353579..2e6bc6f856 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioTipsDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioTipsDelegate.kt
@@ -41,7 +41,12 @@ import androidx.window.layout.FoldingFeature
 import com.google.android.material.bottomsheet.BottomSheetBehavior
 import kotlinx.coroutines.Dispatchers
 import kotlinx.coroutines.launch
-import org.videolan.tools.*
+import org.videolan.tools.PREF_AUDIOPLAYER_TIPS_SHOWN
+import org.videolan.tools.Settings
+import org.videolan.tools.dp
+import org.videolan.tools.putSingle
+import org.videolan.tools.setGone
+import org.videolan.tools.setVisible
 import org.videolan.vlc.R
 import org.videolan.vlc.gui.AudioPlayerContainerActivity
 import org.videolan.vlc.gui.helpers.TipsUtils
@@ -155,8 +160,8 @@ class AudioTipsDelegate(private val activity: AudioPlayerContainerActivity) {
                     constraintSet.setMargin(R.id.tapIndicatorStop, ConstraintSet.START, indicatorX)
                     constraintSet.clear(R.id.tapIndicatorStop, ConstraintSet.END)
                     TipsUtils.startTapAnimation(listOf(tapIndicatorPlaylist))
-                    constraintSet.setVisibility(R.id.tapIndicatorStop, View.VISIBLE)
                 }
+                constraintSet.setVisibility(R.id.tapIndicatorStop, View.VISIBLE)
 
                 TipsUtils.startTapAnimation(listOf(tapIndicatorStop), true)
                 nextButton.setText(R.string.close)



More information about the Android mailing list