Skip to content

fix: clear last video position when playback ends - #1154

Open
wized2 wants to merge 1 commit into
FossifyOrg:mainfrom
wized2:fix/reset-video-position-on-end
Open

wized2 wants to merge 1 commit into
FossifyOrg:mainfrom
wized2:fix/reset-video-position-on-end

Conversation

@wized2

@wized2 wized2 commented Sep 21, 2026

Copy link
Copy Markdown

Summary

When "Remember last video playback position" is on, finishing a video in the in-gallery player (VideoFragment) did not clear the saved position. Only VideoPlayerActivity did. Reopening resumed from an earlier mid-play position.

Change

Call removeLastVideoPosition in VideoFragment.videoCompleted() when the preference is enabled.

Fixes #969

VideoPlayerActivity already cleared on STATE_ENDED; VideoFragment did
not, so finishing a video left the mid-play position and the next open
resumed from the wrong place.

Fixes FossifyOrg#969
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Last video position doesn't reset if you reach the video end

1 participant