fix skipButton still visible after intro end
This commit is contained in:
parent
4a3afe62ef
commit
f75079f720
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ constructor(
|
||||||
val seconds = player.currentPosition / 1000.0
|
val seconds = player.currentPosition / 1000.0
|
||||||
if (intros.isNotEmpty()) {
|
if (intros.isNotEmpty()) {
|
||||||
intros[itemId]?.let { intro ->
|
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) }
|
_uiState.update { it.copy(currentIntro = intro) }
|
||||||
return@let
|
return@let
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue