Merge pull request #268 from lilcheti/master

fix comment crash
This commit is contained in:
Farbod 2022-05-20 19:12:18 +04:30 committed by GitHub
commit b96f622782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,7 @@ class PlayerFragment : Fragment() {
.addOnScrollChangedListener { .addOnScrollChangedListener {
if (scrollView.getChildAt(0).bottom if (scrollView.getChildAt(0).bottom
== (scrollView.height + scrollView.scrollY) == (scrollView.height + scrollView.scrollY)
) { && nextPage != null) {
fetchNextComments() fetchNextComments()
} }
} }
@ -285,7 +285,9 @@ class PlayerFragment : Fragment() {
} }
override fun onStop() { override fun onStop() {
try {
exoPlayer.release() exoPlayer.release()
}catch (e: Exception){}
super.onStop() super.onStop()
} }