mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Fix clicking description links
This commit is contained in:
parent
4beb77fb11
commit
054846eb22
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user