Skip to content

## ADFA-5150 — a systemless K2Go points to Recover instead of offering dead actions - #410

Merged
luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-5150-systemless-surfaces-point-to-recover
Aug 15, 2026
Merged

luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-5150-systemless-surfaces-point-to-recover

Conversation

@luisguzman-adfa

@luisguzman-adfa luisguzman-adfa commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

The field complaint was "the app lets you wander everywhere and never points you to
the fix." With no system, several surfaces offered actions that install into nothing
or mislead. Each now routes to Recover, which already carries all three recoveries
(restore a backup, install over internet, clone) — so this removes dead ends, not
options.

What changed

  • SetupLibraryActivity.recover(ctx) — one route to recovery, next to its
    destination. The launch damaged-dialog and the Home header already copied it; both
    now call it (the anti-duplication move: remove the copies before adding callers).
  • Module card sheet → a NO_SYSTEM state: one Recover row, no About/Install/
    Schedule/Hide.
  • Add modules → a Recover button where it used to dead-end on text.
  • Module detail → primary button becomes Recover (system fact read off the IO
    thread); no Install into a damaged system.
  • Connect → "No system to share yet" + Recover instead of a QR to a dead port.
  • New strings in all 33 locales (MissingTranslation is a hard error).

Why it's safe as one behaviour: these surfaces are only reachable after the
first-run wizard, so a "no system" here is always a lost system, never an initial
setup. The wizard is untouched.

Verification

Symbols, imports, XML and locale counts checked; no build here (gradle offline).
On-device, with a damaged system: card sheet → Recover only; Add modules → Recover;
module detail → Recover not Install; Connect → nothing-to-share + Recover; and with a
healthy system, all four surfaces unchanged.

Follow-up

ADFA-5151 builds on this — confining navigation to the Recover hub so its own
destinations (clone especially) can't wander back out.

…ad actions

With no system a user could tap Install now / Schedule on a module card (banking an
order with nothing to drain it), hit a text dead-end on Add modules, open a module
detail that still offered Install, or open Connect and get a QR to a dead server.

Adds SetupLibraryActivity.recover(ctx) — the route the launch dialog and Home header
already copied — and routes both through it, then the four surfaces: the card sheet
collapses to a NO_SYSTEM state (Recover only), Add modules gains a Recover button,
module detail's primary becomes Recover, and Connect shows "nothing to share yet"
with Recover. Two strings, 33 locales.

These surfaces are all post-wizard, so "no system" here is always a lost system, not
a first run — the initial-setup wizard is untouched.
@luisguzman-adfa luisguzman-adfa changed the title ADFA-5150 fix(ui): systemless surfaces point to Recover instead of de… ## ADFA-5150 — a systemless K2Go points to Recover instead of offering dead actions Aug 15, 2026
Send shares this device's library — with no system there is nothing to send, the
clone counterpart of Connect. Blocked at the entry to the Send side (setSide), which
covers both the fork card and the Send tab, rather than three steps in at the old
"share anyway" notice. Routes to Recover; Receive stays open, since it is how you get
a system.

This also blocks "send the app" (the APK share buried under Send). Deliberate: a
phone with a system is the natural source for both the app and the system, so a
systemless phone sharing just the APK is redundant. If users ask for it, lift that
path up to the fork as its own option rather than reopening Send.
…n auto-jump

Follow-up to the Send block. Tapping "Send to another phone" with no system used to
jump straight to recovery — abrupt, and inconsistent with how Connect and the other
surfaces handle it (a deliberate Recover button, never a teleport).

Send now enters and shows an empty state on its first screen — "No system to share
yet — recover one first" + Recover — mirroring Connect, and blocked at the entry, not
three steps in at the old "share anyway" notice. The hotspot is not started (nothing
to serve). onResume refreshes, so the block clears once a system is recovered. Reuses
k2go_connect_no_system (both are "share your library"), so no new strings.

recover() now adds SINGLE_TOP | CLEAR_TOP so it can never stack: every systemless
surface routes there, and without it a user bouncing surface -> recover -> back ->
surface -> recover would pile up SetupLibraryActivity instances. One instance is
brought forward and reused instead.
Send's no-system empty state looked bare and top-crammed next to Connect's: it hid
the QR box, so the message and button floated at the top. Keep the QR placeholder
visible (null bitmap shows its card background), matching Connect — box, message,
Recover.

Drop the "Available while the app is open" line from the no-system state on both:
Send does not add it, and Connect (where it is a static layout footer) hides it in
noSystemState and re-shows it by default in render(), so the note still appears in
the normal sharing states where it belongs.
@luisguzman-adfa
luisguzman-adfa merged commit 6e0ecb5 into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-5150-systemless-surfaces-point-to-recover branch August 15, 2026 03:35
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