Consider duration 0 as duration not known
This commit is contained in:
parent
9f4730e61f
commit
701e8c59c5
@ -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) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user