Fix an issue with inaccurate video resume

This closes #2750
This commit is contained in:
Ensar Sarajčić 2023-07-24 08:39:09 +02:00
parent 8aaab1eed3
commit 566cbd8765

View file

@ -674,7 +674,6 @@ import java.io.FileInputStream
mPlayPauseButton.setImageResource(R.drawable.ic_play_outline_vector) mPlayPauseButton.setImageResource(R.drawable.ic_play_outline_vector)
activity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) activity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
mPositionAtPause = mExoPlayer?.currentPosition ?: 0L mPositionAtPause = mExoPlayer?.currentPosition ?: 0L
releaseExoPlayer()
} }
private fun videoEnded(): Boolean { private fun videoEnded(): Boolean {