fix: Start video from last position

This commit is contained in:
jmir1 2023-11-17 17:46:26 +01:00
parent 305a179c00
commit 00fb0a740b
No known key found for this signature in database
GPG key ID: 7B3B624787A072BD

View file

@ -135,7 +135,7 @@ class PlayerViewModel @JvmOverloads constructor(
/**
* The position in the current video. Used to restore from process kill.
*/
private var episodePosition = savedState.get<Long>("episode_position") ?: 0L
private var episodePosition = savedState.get<Long>("episode_position")
set(value) {
savedState["episode_position"] = value
field = value