fix next episode button
This commit is contained in:
parent
dcd6ebccea
commit
57897077ab
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue