Skip to content

Commit 249e265

Browse files
committed
Consider duration 0 as duration not known
1 parent 37b4d8a commit 249e265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data class LongPressable(
3636
if (streamType == LIVE_STREAM || streamType == AUDIO_LIVE_STREAM) {
3737
Live
3838
} else {
39-
duration.takeIf { it >= 0 }?.let { Duration(it) }
39+
duration.takeIf { it > 0 }?.let { Duration(it) }
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)