mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
adding a crashfix
This commit is contained in:
parent
c0a502fd5b
commit
2196d1f4f9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue