mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
Merge pull request #2273 from Bnyro/master
Fix that the SponsorBlock toggle shows when no segments are available
This commit is contained in:
commit
5d084b6a3b
@ -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
|
||||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.3.1'
|
classpath 'com.android.tools.build:gradle:7.4.0-rc01'
|
||||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22'
|
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
Reference in New Issue
Block a user