From 1be3a0dfd2f8fcf68a16cfe84037a88bc1aa37f6 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 6 Dec 2022 17:24:40 +0100 Subject: [PATCH 1/2] bump AGP --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b1a407b72e492d599d4935c86b65eaf9c40b19b5 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 6 Dec 2022 17:25:17 +0100 Subject: [PATCH 2/2] Fix that the SponsorBlock toggle shows when no segments are available --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 1 + 1 file changed, 1 insertion(+) 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