mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +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!!,
|
||||
ObjectMapper().writeValueAsString(categories)
|
||||
)
|
||||
if (segmentData.segments.isEmpty()) return@runCatching
|
||||
playerBinding.exoProgress.setSegments(segmentData.segments)
|
||||
runOnUiThread {
|
||||
playerBinding.sbToggle.visibility = View.VISIBLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user