don't show next episode, if there is no

This commit is contained in:
Jannik 2020-11-13 15:45:52 +01:00
parent 23713fc1e6
commit 14377c3f18
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class PlayerActivity : AppCompatActivity() {
if (remainingTime in 0..20000) {
withContext(Dispatchers.Main) {
// if the next ep button is not visible, make it visible
if (!button_next_ep.isVisible) {
if (!button_next_ep.isVisible && nextEpisode != null) {
button_next_ep.visibility = View.VISIBLE // TODO animation
}
}