reset video SurfaceView and SurfaceHolder on destroy
This commit is contained in:
parent
0048f9096b
commit
f657a64baa
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
releaseMediaPlayer()
|
releaseMediaPlayer()
|
||||||
mSeekBar?.progress = 0
|
mSeekBar?.progress = 0
|
||||||
mTimerHandler?.removeCallbacksAndMessages(null)
|
mTimerHandler?.removeCallbacksAndMessages(null)
|
||||||
|
mSurfaceView = null
|
||||||
|
mSurfaceHolder = null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun releaseMediaPlayer() {
|
private fun releaseMediaPlayer() {
|
||||||
|
|
Loading…
Reference in a new issue