Skip to content

K2GO-434 refactor(setup): extract the detail host and action bar - #603

Merged
luisguzman-adfa merged 2 commits into
mainfrom
refactor/K2GO-434-detail-host
Oct 1, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
refactor/K2GO-434-detail-host

Conversation

@luisguzman-adfa

@luisguzman-adfa luisguzman-adfa commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Extract the per-stream detail host out of SetupProgressActivity into a new
Activity-scoped SetupDetailHost, continuing the K2GO-434 decomposition.

Moved: opening a row's detail fragment over the index, the two-button detail
action bar (Back / Run in background, or Retry / Cancel for a module or seed),
the return to the index, and the detail state. The Activity keeps the actions
that need its pipeline or context (retry the seed, cancel a module); the host
fires them through a narrow Host interface. SetupProgressActivity drops ~144
lines.

Behavior-preserving: fragment transactions keep commitNow and the listener
reclaim order. Build plus 35 setup.domain unit tests green; two-pass review
done; device-smoked on a OnePlus (open detail, action bar, back to the index
with the row updating to Done, no crash).

Move opening a row's detail over the index, the detail action bar, and the
detail state out of SetupProgressActivity into SetupDetailHost. The Activity
keeps the actions that need its pipeline or context (retry the seed, cancel a
module); the host fires them through a narrow Host. Behavior-preserving.
Name the SetupDetailHost.Host.goHome parameter clearSessions, matching the
value it forwards to Activity.goHome (the old keepSessionsAlive name read as
the opposite of its effect). Drop the dead detailBackBtn null check in
configureDetailBar (the field is final and set in the constructor).
@luisguzman-adfa
luisguzman-adfa merged commit 42e3b6f into main Oct 1, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the refactor/K2GO-434-detail-host branch October 1, 2026 01:36
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