Consider duration 0 as duration not known

This commit is contained in:
Stypox 2025-10-19 11:15:32 +02:00
parent 9f4730e61f
commit 701e8c59c5
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -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) }
}
}
}