mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-30 19:24:51 +01:00
reset video SurfaceView and SurfaceHolder on destroy
This commit is contained in:
parent
0048f9096b
commit
f657a64baa
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user