mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Fix formatting
This commit is contained in:
parent
46b89de25b
commit
05959a41d9
@ -524,10 +524,9 @@ class PlayerFragment : Fragment() {
|
||||
|
||||
|
||||
// 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=","")
|
||||
videoId = relatedStreams!![0].url!!.replace("/watch?v=", "")
|
||||
fetchJsonAndInitPlayer(view)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user