Fix that the SponsorBlock toggle shows when no segments are available

This commit is contained in:
Bnyro 2022-12-06 17:25:17 +01:00
parent 1be3a0dfd2
commit b1a407b72e

View File

@ -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