Merge pull request #5850 from Bnyro/master

feat: respect swipe controls option in audio mode
This commit is contained in:
Bnyro 2024-04-01 20:20:44 +02:00 committed by GitHub
commit f402b0dedb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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