feat: respect swipe controls option in audio mode

This commit is contained in:
Bnyro 2024-04-01 20:20:24 +02:00
parent e04b07d4ff
commit bb691d3249

View File

@ -399,11 +399,15 @@ class AudioPlayerFragment : Fragment(), AudioPlayerOptions {
} }
override fun onSwipe(distanceY: Float) { override fun onSwipe(distanceY: Float) {
if (!PlayerHelper.swipeGestureEnabled) return
binding.volumeControls.isVisible = true binding.volumeControls.isVisible = true
updateVolume(distanceY) updateVolume(distanceY)
} }
override fun onSwipeEnd() { override fun onSwipeEnd() {
if (!PlayerHelper.swipeGestureEnabled) return
binding.volumeControls.isGone = true binding.volumeControls.isGone = true
} }