add an aditional null check at videofragments
This commit is contained in:
parent
64fa74f6cd
commit
9d7834f294
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
|
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
|
||||||
if (width != 0 && height != 0)
|
if (width != 0 && height != 0 && mSurfaceView != null)
|
||||||
setVideoSize()
|
setVideoSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue