mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
feat: respect swipe controls option in audio mode
This commit is contained in:
parent
e04b07d4ff
commit
bb691d3249
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user