adding a null check at video seekbar usage

This commit is contained in:
tibbi 2018-07-05 11:13:01 +02:00
parent 5420321207
commit 376b9870e2
1 changed files with 3 additions and 0 deletions

View File

@ -561,6 +561,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
}
override fun onStopTrackingTouch(seekBar: SeekBar) {
if (mExoPlayer == null)
return
if (!mIsPlaying) {
togglePlayPause()
} else {