Repository navigation
## ADFA-5150 — a systemless K2Go points to Recover instead of offering dead actions - #410
Merged
luisguzman-adfa merged 4 commits intoAug 15, 2026
Conversation
…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.
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
deleted the
fix/ADFA-5150-systemless-surfaces-point-to-recover
branch
August 15, 2026 03:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 itsdestination. 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).
NO_SYSTEMstate: one Recover row, no About/Install/Schedule/Hide.
thread); no Install into a damaged system.
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.