mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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
|
// not a youtube video link, thus handle normally
|
||||||
val intent = Intent(Intent.ACTION_VIEW, uri)
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the video is the current video and has a valid time
|
// check if the video is the current video and has a valid time
|
||||||
if (videoId == this.videoId) {
|
if (videoId == this.videoId) {
|
||||||
// try finding the time stamp of the url and seek to it if found
|
// 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)
|
exoPlayer.seekTo(it * 1000)
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
playNextVideo(videoId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user