fix comment crash

This commit is contained in:
rimthekid 2022-05-20 07:34:47 -07:00
parent 13b92d6e40
commit 6d568e28c9

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