mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fixing some crash at the video fragment cleanup
This commit is contained in:
@ -635,10 +635,13 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||
|
||||
private fun cleanup() {
|
||||
pauseVideo()
|
||||
mCurrTimeView.text = 0.getFormattedDuration()
|
||||
releaseExoPlayer()
|
||||
mSeekBar.progress = 0
|
||||
mTimerHandler.removeCallbacksAndMessages(null)
|
||||
|
||||
if (mWasFragmentInit) {
|
||||
mCurrTimeView.text = 0.getFormattedDuration()
|
||||
mSeekBar.progress = 0
|
||||
mTimerHandler.removeCallbacksAndMessages(null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun releaseExoPlayer() {
|
||||
|
Reference in New Issue
Block a user