diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 61f59c5fb..e8d168399 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -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 diff --git a/build.gradle b/build.gradle index dd5693d9f..2ed700619 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { mavenCentral() } 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' // NOTE: Do not place your application dependencies here; they belong