diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 11ed33f08..2c220fe80 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -1,4 +1,8 @@ name: CI + +permissions: + contents: write + on: push: branches: 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 68255cc28..3b32bfb1c 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 @@ -138,7 +138,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