Skip to content

Commit

Permalink
fix: Start video from last position
Browse files Browse the repository at this point in the history
  • Loading branch information
jmir1 committed Nov 17, 2023
1 parent 305a179 commit 00fb0a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00fb0a7

Please sign in to comment.