clean up some more things after usage at videofragment
This commit is contained in:
parent
f657a64baa
commit
e1ec8c5623
1 changed files with 2 additions and 0 deletions
|
@ -458,10 +458,12 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||
mSeekBar?.progress = 0
|
||||
mTimerHandler?.removeCallbacksAndMessages(null)
|
||||
mSurfaceView = null
|
||||
mSurfaceHolder?.removeCallback(this)
|
||||
mSurfaceHolder = null
|
||||
}
|
||||
|
||||
private fun releaseMediaPlayer() {
|
||||
mMediaPlayer?.setSurface(null)
|
||||
mMediaPlayer?.release()
|
||||
mMediaPlayer = null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue