From 2329daef5716ec26a7b084cee696aa41e97465c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis?= <97699850+janisslsm@users.noreply.github.com> Date: Fri, 17 Jun 2022 14:29:39 +0300 Subject: [PATCH] More reviewdog satisfaction --- .../java/com/github/libretube/fragments/PlayerFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index d5cb3b8cb..c1fc1fccf 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -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)