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
1 changed files with 0 additions and 1 deletions

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 {