Skip to content

feat(sync): carve arch-check into ArchCheckController (ADFA-4506 slic…#126

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4506-archcheck-controller
Jul 3, 2026
Merged

feat(sync): carve arch-check into ArchCheckController (ADFA-4506 slic…#126
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4506-archcheck-controller

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Slice 1/4 of the ADFA-4506 SyncFragment carve (residual after the ADFA-4492 export).

Extracts the 32/64-bit architecture compatibility check into a dedicated collaborator, mirroring the existing ResetDeleteController / AdbShareController seam:

  • New sync/presentation/ArchCheckController + ArchCheckHost; constructed (fragment, host), borrows the two arch-label views via bind().
    • Moves getArchBits/getTermuxArch, the incompatibility dialog, the compatibility-success feedback (vibrate + snackbar + delayed label reset; the S8 lifecycle guards are preserved verbatim), and label visibility out of the Fragment.
    • SyncFragment implements ArchCheckHost (isShareMode / isServerRunning), wires the controller in onCreateView, delegates in handleScannedData, and drops 3 now-unused imports. Net -85 LOC in the Fragment.
      Behaviour-preserving refactor. No new strings (no MissingTranslation impact); brace-balanced, no dangling refs, controller imports all used. Not compiled in-sandbox — please build (:app:lintDebug).

Refs ADFA-4506; epic ADFA-1028. Next slices: ApkShareController, ShareServerController, ReceiveController.

…e 1)

Strangler-fig carve of the SyncFragment god class (residual after the
ADFA-4492 export). First, lowest-risk slice: the 32/64-bit architecture
compatibility check.

- New sync/presentation/ArchCheckController (+ ArchCheckHost seam), mirroring
  the ResetDeleteController/AdbShareController pattern: constructed with
  (fragment, host); borrows the two arch-label views via bind().
- Moves getArchBits/getTermuxArch, the incompatibility dialog, the
  compatibility-success feedback (vibrate + snackbar + delayed label reset,
  S8 lifecycle guards preserved verbatim), and label visibility out of
  SyncFragment. The mode/server state the visibility rule needs is read back
  through ArchCheckHost (isShareMode / isServerRunning).
- SyncFragment implements ArchCheckHost; drops 3 now-unused imports.

Behaviour-preserving. No new strings (no MissingTranslation impact). Next
slices: ApkShare, ShareServer, Receive controllers.
@luisguzman-adfa luisguzman-adfa merged commit d30e738 into main Jul 3, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the feat/ADFA-4506-archcheck-controller branch July 3, 2026 00:28
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