mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Fix that the SponsorBlock toggle shows when no segments are available
This commit is contained in:
parent
1be3a0dfd2
commit
b1a407b72e
@ -659,6 +659,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
|||||||
videoId!!,
|
videoId!!,
|
||||||
ObjectMapper().writeValueAsString(categories)
|
ObjectMapper().writeValueAsString(categories)
|
||||||
)
|
)
|
||||||
|
if (segmentData.segments.isEmpty()) return@runCatching
|
||||||
playerBinding.exoProgress.setSegments(segmentData.segments)
|
playerBinding.exoProgress.setSegments(segmentData.segments)
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
playerBinding.sbToggle.visibility = View.VISIBLE
|
playerBinding.sbToggle.visibility = View.VISIBLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user