Repository navigation
ADFA-5152 fix(clone): a receive reopened during a transfer lands on p… - #409
Merged
luisguzman-adfa merged 1 commit intoAug 15, 2026
Merged
Conversation
…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
deleted the
fix/ADFA-5152-clone-receive-reopens-on-fork
branch
August 15, 2026 01:54
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.
…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.