Skip to content

K2GO-449 refactor(app): migrate ZimDownloadService onto ContentDownloadServiceBase - #653

Merged
luisguzman-adfa merged 2 commits into
mainfrom
refactor/K2GO-449-zim-on-base
Oct 14, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
refactor/K2GO-449-zim-on-base

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

What

Migrate ZimDownloadService onto the shared ContentDownloadServiceBase (K2GO-449, slice 2).

Why

ZIM still carried its own foreground-service shell. Thinning it onto the base removes the duplicated
onStartCommand / notification / channel / Host plumbing, so ZIM now takes the same path as Books,
CodeAssets and Addons.

Scope

  • ZimDownloadService: thinned to hooks (session, actions, notification title, START item from
    files/labels/bytes with byte-weighted percent, wishlist cleanup on cancel/done, and the ADR-390
    catalog self-heal via onItemError). Net -53 lines. The static UI API is unchanged.
  • No change to ContentDownloadServiceBase: it already provides the label-threaded notification, the
    returnIntent() hook and onCancel() from the Books slice.

Verification

Build + lint green; double code-review (two passes); device-tested on a Samsung A16 (3 ZIMs, 118 MB:
byte-weighted progress + speed, notification with tap-to-return, download completes).

…adServiceBase

Thin ZimDownloadService to the shared base, keeping the ZIM hooks: session, actions, notification title, START item from files/labels/bytes (byte-weighted percent), wishlist cleanup on cancel and done, and the ADR-390 catalog self-heal via onItemError. No base change: the base already provides the label-threaded notification, the returnIntent() hook, and onCancel() from the Books slice.
@luisguzman-adfa
luisguzman-adfa merged commit f23032b into main Oct 14, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the refactor/K2GO-449-zim-on-base branch October 14, 2026 20:20
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