reset video SurfaceView and SurfaceHolder on destroy

This commit is contained in:
tibbi 2017-11-09 16:50:32 +01:00
parent 0048f9096b
commit f657a64baa

View file

@ -457,6 +457,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
releaseMediaPlayer()
mSeekBar?.progress = 0
mTimerHandler?.removeCallbacksAndMessages(null)
mSurfaceView = null
mSurfaceHolder = null
}
private fun releaseMediaPlayer() {