fix skipButton still visible after intro end

This commit is contained in:
cd16b 2024-03-04 00:28:26 +01:00
parent 4a3afe62ef
commit f75079f720

View file

@ -258,7 +258,7 @@ constructor(
val seconds = player.currentPosition / 1000.0
if (intros.isNotEmpty()) {
intros[itemId]?.let { intro ->
if (seconds > intro.showSkipPromptAt && seconds < intro.hideSkipPromptAt) {
if (seconds > intro.showSkipPromptAt && seconds < (intro.hideSkipPromptAt - 1)) {
_uiState.update { it.copy(currentIntro = intro) }
return@let
}