Skip to content

ADFA-5152 fix(clone): a receive reopened during a transfer lands on p… - #409

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5152-clone-receive-reopens-on-fork
Aug 15, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5152-clone-receive-reopens-on-fork

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

…rogress, not the fork

Reopening the app mid-receive — the notification tapped, or a plain relaunch — showed the Send/Receive fork instead of the live progress screen, losing sight of the receiver's percentage (the only progress there is).

onCreateView re-bound the SEND side but had no equivalent for RECEIVE; its comment claimed "Receive already re-binds via SyncProgressRepository" while no such block existed, so a recreated fragment fell to the default atFork=true. Both entrances already deliver the user to the Clone tab (the notification points at nav_clone, LibraryActivity routes a live-receive reopen there) — the only gap was the fragment's initial view.

Adds the symmetric block: on SyncProgressRepository.isActive(), select the receive side and mark the CLONE lock/guard held (re-derived, like showReceiveTerminal) so a later cancel releases through releaseCloneEnv. renderReceive already paints the progress from the live state.

Only while the process is alive; a hard kill empties the in-memory session and is the durability problem (ADFA-5146 family), not this.

…rogress, not the fork

Reopening the app mid-receive — the notification tapped, or a plain relaunch —
showed the Send/Receive fork instead of the live progress screen, losing sight of
the receiver's percentage (the only progress there is).

onCreateView re-bound the SEND side but had no equivalent for RECEIVE; its comment
claimed "Receive already re-binds via SyncProgressRepository" while no such block
existed, so a recreated fragment fell to the default atFork=true. Both entrances
already deliver the user to the Clone tab (the notification points at nav_clone,
LibraryActivity routes a live-receive reopen there) — the only gap was the
fragment's initial view.

Adds the symmetric block: on SyncProgressRepository.isActive(), select the receive
side and mark the CLONE lock/guard held (re-derived, like showReceiveTerminal) so a
later cancel releases through releaseCloneEnv. renderReceive already paints the
progress from the live state.

Only while the process is alive; a hard kill empties the in-memory session and is
the durability problem (ADFA-5146 family), not this.
@luisguzman-adfa
luisguzman-adfa merged commit 56a9a72 into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-5152-clone-receive-reopens-on-fork branch August 15, 2026 01:54
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