From 701e8c59c5d7cfb07d6188313812a4df96bd241a Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 19 Oct 2025 11:15:32 +0200 Subject: [PATCH] Consider duration 0 as duration not known --- .../java/org/schabi/newpipe/ui/components/menu/LongPressable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressable.kt b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressable.kt index 01f50e454..8c9c1a1eb 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressable.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressable.kt @@ -37,7 +37,7 @@ data class LongPressable( if (streamType == LIVE_STREAM || streamType == AUDIO_LIVE_STREAM) { Live } else { - duration.takeIf { it >= 0 }?.let { Duration(it) } + duration.takeIf { it > 0 }?.let { Duration(it) } } } }