From f657a64baac993efaa046a5ec9d8179f7687ebf7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 9 Nov 2017 16:50:32 +0100 Subject: [PATCH] reset video SurfaceView and SurfaceHolder on destroy --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index e6433e246..228ac1fc8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -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() {