Skip to content

Preserve video dates across vault moves - #2004

Open
anilbeesetti wants to merge 1 commit into
mainfrom
fix/vault-video-dates
Open

anilbeesetti wants to merge 1 commit into
mainfrom
fix/vault-video-dates

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Moving an older video into or out of the vault resets its added date and causes a false “new” label. Save the original added and modified dates in vault records and retain them in media state when restoring the video, since Android assigns a fresh date to the recreated MediaStore entry.

Add database migration 12 → 13 and regression coverage for hide/restore round trips, repeated moves, failed restores, and date mapping. Legacy vault records have no saved original dates, so use unknown dates rather than marking them newly added.

Validation:

  • Debug build and ktlint checks passed.
  • All 299 local tests passed, including vault round-trip tests under Robolectric API 28 and API 30.
  • Data and database instrumentation test APKs compiled.
  • Migration SQL matched the exported Room schema and preserved existing vault and playback records.
  • Device/UI testing could not run: no connected Android device or installed emulator was available.

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.

1 participant