mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 14:50:30 +05:30
fix: restoring playback positions via notification controls
This commit is contained in:
parent
1c84cd744c
commit
ac5fb5fbb4
@ -813,16 +813,15 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
saveWatchPosition()
|
saveWatchPosition()
|
||||||
|
|
||||||
// save the id of the next stream as videoId and load the next video
|
// save the id of the next stream as videoId and load the next video
|
||||||
if (nextVideoId != null) {
|
if (nextVideoId == null) return
|
||||||
|
|
||||||
|
isTransitioning = true
|
||||||
videoId = nextVideoId
|
videoId = nextVideoId
|
||||||
|
// start to play the next video
|
||||||
// play the next video
|
|
||||||
playVideo()
|
playVideo()
|
||||||
|
// close comment bottom sheet for next video
|
||||||
// close comment bottom-sheet for next video
|
|
||||||
commentsViewModel.commentsSheetDismiss?.invoke()
|
commentsViewModel.commentsSheetDismiss?.invoke()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private fun prepareExoPlayerView() {
|
private fun prepareExoPlayerView() {
|
||||||
binding.player.apply {
|
binding.player.apply {
|
||||||
|
Loading…
Reference in New Issue
Block a user