adding a null check at video seekbar usage
This commit is contained in:
parent
5420321207
commit
376b9870e2
|
@ -561,6 +561,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
|||
}
|
||||
|
||||
override fun onStopTrackingTouch(seekBar: SeekBar) {
|
||||
if (mExoPlayer == null)
|
||||
return
|
||||
|
||||
if (!mIsPlaying) {
|
||||
togglePlayPause()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue