From bb81275b79d00d11e8209f03a8034ca3d334f46b Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 27 Jun 2017 22:36:39 +0200 Subject: [PATCH] make mediaplayer at onStopTrackingTouch of video fragment nullable --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fa60bfa53..6c2fd1776 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -367,7 +367,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee if (!mIsPlaying) { togglePlayPause() } else { - mMediaPlayer!!.start() + mMediaPlayer?.start() } mIsDragged = false