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 4942ea351..7ee976475 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -467,11 +467,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee } private fun releaseMediaPlayer() { - Thread { - mMediaPlayer?.setSurface(null) - mMediaPlayer?.release() - mMediaPlayer = null - }.start() + mMediaPlayer?.setSurface(null) + mMediaPlayer?.release() + mMediaPlayer = null } private fun videoPrepared(mediaPlayer: MediaPlayer) {