Update PlayerFragment.kt

This commit is contained in:
IndusAryan 2023-10-30 13:51:58 +05:30 committed by GitHub
parent 841a4c9cc6
commit b7c14a2186
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()