mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Fix autoplay countdown crash
This commit is contained in:
parent
fa18d26b0f
commit
7939a60698
@ -1023,11 +1023,16 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
|
|||||||
binding.player.useController = false
|
binding.player.useController = false
|
||||||
binding.player.hideController()
|
binding.player.hideController()
|
||||||
binding.autoplayCountdown.setHideSelfListener {
|
binding.autoplayCountdown.setHideSelfListener {
|
||||||
binding.autoplayCountdown.visibility = View.GONE
|
// could fail if the video already got closed before
|
||||||
binding.player.useController = true
|
runCatching {
|
||||||
|
binding.autoplayCountdown.visibility = View.GONE
|
||||||
|
binding.player.useController = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
binding.autoplayCountdown.startCountdown {
|
binding.autoplayCountdown.startCountdown {
|
||||||
playNextVideo()
|
runCatching {
|
||||||
|
playNextVideo()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user