mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
More reviewdog satisfaction
This commit is contained in:
parent
05959a41d9
commit
2329daef57
@ -522,9 +522,9 @@ class PlayerFragment : Fragment() {
|
||||
!playWhenReady
|
||||
)
|
||||
|
||||
|
||||
// check if video has ended, next video is available and autoplay is enabled.
|
||||
if(playbackState == Player.STATE_ENDED && relatedStreams != null && relatedStreams!!.isNotEmpty() && !transitioning && autoplay) {
|
||||
if(playbackState == Player.STATE_ENDED && relatedStreams != null &&
|
||||
relatedStreams!!.isNotEmpty() && !transitioning && autoplay) {
|
||||
transitioning = true
|
||||
videoId = relatedStreams!![0].url!!.replace("/watch?v=", "")
|
||||
fetchJsonAndInitPlayer(view)
|
||||
|
Loading…
Reference in New Issue
Block a user