mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #5066 from IndusAryan/smolfix
fix: crash when comments are opened when video isn't initialized
This commit is contained in:
commit
31a82f985b
@ -406,6 +406,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
binding.commentsToggle.setOnClickListener {
|
||||
if (!this::streams.isInitialized) return@setOnClickListener
|
||||
// set the max height to not cover the currently playing video
|
||||
commentsViewModel.handleLink = this::handleLink
|
||||
updateMaxSheetHeight()
|
||||
|
Loading…
x
Reference in New Issue
Block a user