check for null mediaplayer at dragging video progress

This commit is contained in:
tibbi 2017-06-15 21:35:08 +02:00
parent 62da5a0477
commit 5d2528b415

View file

@ -348,6 +348,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
override fun onStartTrackingTouch(seekBar: SeekBar) {
initMediaPlayer()
if (mMediaPlayer == null)
return
mMediaPlayer!!.pause()
mIsDragged = true
}