Fix clicking description links

This commit is contained in:
Bnyro 2023-01-22 19:39:39 +01:00
parent 4beb77fb11
commit 054846eb22

View File

@ -1057,7 +1057,9 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
// not a youtube video link, thus handle normally
val intent = Intent(Intent.ACTION_VIEW, uri)
startActivity(intent)
return
}
// check if the video is the current video and has a valid time
if (videoId == this.videoId) {
// try finding the time stamp of the url and seek to it if found
@ -1065,7 +1067,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
exoPlayer.seekTo(it * 1000)
}
} else {
// youtube video link without time or not the current video, thus open new player
// youtube video link without time or not the current video, thus load in player
playNextVideo(videoId)
}
}