Close player on the last episode of a series
This commit is contained in:
parent
916d71a085
commit
9711f4c4fb
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ class PlayerActivity : BasePlayerActivity() {
|
|||
binding.playerView.player?.seekTo((it.introEnd * 1000).toLong())
|
||||
}
|
||||
} else if (currentCredit != null) {
|
||||
binding.playerView.player?.seekToNext()
|
||||
if (binding.playerView.player?.hasNextMediaItem() == true) binding.playerView.player?.seekToNext()
|
||||
else finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue