diff --git a/app/src/main/java/com/github/libretube/extensions/SetWatchProgressLength.kt b/app/src/main/java/com/github/libretube/extensions/SetWatchProgressLength.kt index f0689deda..ed8fa85bf 100644 --- a/app/src/main/java/com/github/libretube/extensions/SetWatchProgressLength.kt +++ b/app/src/main/java/com/github/libretube/extensions/SetWatchProgressLength.kt @@ -25,7 +25,7 @@ fun View?.setWatchProgressLength(videoId: String, duration: Long) { .addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListener { override fun onGlobalLayout() { this@setWatchProgressLength.getViewTreeObserver().removeOnGlobalLayoutListener(this) - if (progress == null) { + if (progress == null || duration == 0L) { view.visibility = View.GONE return }