Merge pull request #5066 from IndusAryan/smolfix

fix: crash when comments are opened when video isn't initialized
This commit is contained in:
Bnyro 2023-10-30 11:03:04 +01:00 committed by GitHub
commit 31a82f985b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()