mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +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 segmentStart = (segment.segment!![0] * 1000f).toLong()
|
||||||
val segmentEnd = (segment.segment[1] * 1000f).toLong()
|
val segmentEnd = (segment.segment[1] * 1000f).toLong()
|
||||||
|
|
||||||
|
// show the button to manually skip the segment
|
||||||
if (currentPosition in segmentStart until segmentEnd) {
|
if (currentPosition in segmentStart until segmentEnd) {
|
||||||
if (skipSegmentsManually) {
|
if (skipSegmentsManually) {
|
||||||
binding.sbSkipBtn.visibility = View.VISIBLE
|
binding.sbSkipBtn.visibility = View.VISIBLE
|
||||||
binding.sbSkipBtn.setOnClickListener {
|
binding.sbSkipBtn.setOnClickListener {
|
||||||
exoPlayer.seekTo(segmentEnd)
|
exoPlayer.seekTo(segmentEnd)
|
||||||
}
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sponsorBlockNotifications) {
|
if (sponsorBlockNotifications) {
|
||||||
@ -739,6 +741,7 @@ class PlayerFragment : BaseFragment() {
|
|||||||
).show()
|
).show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// skip the segment automatically
|
||||||
exoPlayer.seekTo(segmentEnd)
|
exoPlayer.seekTo(segmentEnd)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user