From 00fb0a740b6bcaec17c7509bdd4f2f8c74a643ac Mon Sep 17 00:00:00 2001 From: jmir1 Date: Fri, 17 Nov 2023 17:46:26 +0100 Subject: [PATCH] fix: Start video from last position --- .../main/java/eu/kanade/tachiyomi/ui/player/PlayerViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/player/PlayerViewModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/player/PlayerViewModel.kt index 1df30028ba..4cfb6dabf0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/player/PlayerViewModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/player/PlayerViewModel.kt @@ -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("episode_position") ?: 0L + private var episodePosition = savedState.get("episode_position") set(value) { savedState["episode_position"] = value field = value