Merge pull request #2273 from Bnyro/master

Fix that the SponsorBlock toggle shows when no segments are available
This commit is contained in:
Bnyro 2022-12-06 17:25:51 +01:00 committed by GitHub
commit 5d084b6a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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