adding a crashfix

This commit is contained in:
tibbi 2019-08-03 09:25:42 +02:00
parent c0a502fd5b
commit 2196d1f4f9

View file

@ -273,7 +273,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
}
private fun saveVideoProgress() {
if (!videoEnded()) {
if (!videoEnded() && mExoPlayer != null) {
mConfig.saveLastVideoPosition(mMedium.path, mExoPlayer!!.currentPosition.toInt() / 1000)
}
}