clean up some more things after usage at videofragment

This commit is contained in:
tibbi 2017-11-09 17:04:10 +01:00
parent f657a64baa
commit e1ec8c5623

View file

@ -458,10 +458,12 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
mSeekBar?.progress = 0 mSeekBar?.progress = 0
mTimerHandler?.removeCallbacksAndMessages(null) mTimerHandler?.removeCallbacksAndMessages(null)
mSurfaceView = null mSurfaceView = null
mSurfaceHolder?.removeCallback(this)
mSurfaceHolder = null mSurfaceHolder = null
} }
private fun releaseMediaPlayer() { private fun releaseMediaPlayer() {
mMediaPlayer?.setSurface(null)
mMediaPlayer?.release() mMediaPlayer?.release()
mMediaPlayer = null mMediaPlayer = null
} }