fix next episode button

This commit is contained in:
Jannik 2020-11-22 14:20:17 +01:00
parent dcd6ebccea
commit 57897077ab
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
1 changed files with 4 additions and 2 deletions

View File

@ -219,9 +219,11 @@ class PlayerActivity : AppCompatActivity() {
controlsVisible = controller.isVisible
}
if (remainingTime in 1..20000 && !btnNextEpIsVisible && nextEpisode != null && Preferences.autoplay) {
if (remainingTime in 1..20000) {
// if the next ep button is not visible, make it visible
withContext(Dispatchers.Main) { showButtonNextEp() }
if (!btnNextEpIsVisible && nextEpisode != null && Preferences.autoplay) {
withContext(Dispatchers.Main) { showButtonNextEp() }
}
} else if (btnNextEpIsVisible) {
withContext(Dispatchers.Main) { hideButtonNextEp() }
}