mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-19 06:48:00 +01:00
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
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue