Skip to content

fix(downloads): save progress that survives a restart, on a calmer cadence - #2358

Merged
A-EDev merged 14 commits into
mainfrom
fix/download-progress-updates
Nov 24, 2026
Merged

A-EDev merged 14 commits into
mainfrom
fix/download-progress-updates

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Download progress is saved to Room on each new percent or every 16 MiB (updateBytes, status untouched), so the Downloads screen shows it after a restart instead of 0%.
  • The download connections setting is clamped to 1..8 when stored and read.

Related issue

None. Part of the downloads plan (YouTube 21.45.82 offline pipeline vs Flow). Stacked: merge from the top of the stack.

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug (top of the stack)
  • ./gradlew :app:testGithubDebugUnitTest (7,137 tests, 0 failures on the top of the stack; download and shared UI tests on this branch)
  • I ran any additional flavor-specific build or test tasks affected by this change. (ktlintCheck on this branch, :app:compileFossDebugKotlin on the top of the stack)
  • I manually tested the affected behavior on an Android device or emulator.

Test device and Android version: Xiaomi 2311DRK48G, Android 16 (HyperOS), Wi-Fi

After the app was killed mid-download, the Downloads row showed the saved 33% right away.

Screenshots or recordings

Risk and compatibility

Adds one DAO update query; no schema change.

  • The change does not introduce secrets, private data, or unexpected telemetry.
  • New user-facing text uses Android string resources.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
  • Breaking changes and upgrade steps are clearly documented.

@A-EDev
A-EDev changed the base branch from perf/download-cache-reuse to main November 23, 2026 22:15
@A-EDev A-EDev closed this Nov 23, 2026
@A-EDev A-EDev reopened this Nov 23, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation player Video and audio playback ui Compose UI, theming, or Material 3 surfaces labels Nov 23, 2026
@A-EDev
A-EDev merged commit a4a9c70 into main Nov 24, 2026
13 of 17 checks passed
@A-EDev
A-EDev deleted the fix/download-progress-updates branch November 24, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation player Video and audio playback ui Compose UI, theming, or Material 3 surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant