mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +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.hideController()
|
||||
binding.autoplayCountdown.setHideSelfListener {
|
||||
binding.autoplayCountdown.visibility = View.GONE
|
||||
binding.player.useController = true
|
||||
// could fail if the video already got closed before
|
||||
runCatching {
|
||||
binding.autoplayCountdown.visibility = View.GONE
|
||||
binding.player.useController = true
|
||||
}
|
||||
}
|
||||
binding.autoplayCountdown.startCountdown {
|
||||
playNextVideo()
|
||||
runCatching {
|
||||
playNextVideo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user