mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
bug fixes
This commit is contained in:
parent
94690ca284
commit
2deee95fb4
@ -722,12 +722,14 @@ class PlayerFragment : BaseFragment() {
|
||||
val segmentStart = (segment.segment!![0] * 1000f).toLong()
|
||||
val segmentEnd = (segment.segment[1] * 1000f).toLong()
|
||||
|
||||
// show the button to manually skip the segment
|
||||
if (currentPosition in segmentStart until segmentEnd) {
|
||||
if (skipSegmentsManually) {
|
||||
binding.sbSkipBtn.visibility = View.VISIBLE
|
||||
binding.sbSkipBtn.setOnClickListener {
|
||||
exoPlayer.seekTo(segmentEnd)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if (sponsorBlockNotifications) {
|
||||
@ -739,6 +741,7 @@ class PlayerFragment : BaseFragment() {
|
||||
).show()
|
||||
}
|
||||
|
||||
// skip the segment automatically
|
||||
exoPlayer.seekTo(segmentEnd)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user