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