mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix comment crash
This commit is contained in:
parent
13b92d6e40
commit
6d568e28c9
@ -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() {
|
||||||
exoPlayer.release()
|
try {
|
||||||
|
exoPlayer.release()
|
||||||
|
}catch (e: Exception){}
|
||||||
super.onStop()
|
super.onStop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user