Skip to content

ADFA-4476: animate the module-management install button like the othe…#124

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4476-launch-button-progress
Jul 2, 2026
Merged

ADFA-4476: animate the module-management install button like the othe…#124
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4476-launch-button-progress

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

…r action buttons

The 'Launch install' button in Module management was a plain Button, so it lacked the indeterminate progress bar (the sweeping fill/empty bar at the bottom) that the fast-install / backup / restore buttons show while working. Make it a ProgressButton and drive it from the module-queue observer: start the animation on RUNNING, stop it on DONE. startProgress() is idempotent (guards on isRunning), so re-observing after a recreation does not restart it.

  • fragment_deploy.xml: btn_launch_install is now org.iiab.controller.ProgressButton.
  • DeployFragment / InstallController: field + constructor param typed ProgressButton (ProgressButton extends AppCompatButton, so existing calls are unchanged); drop the now-unused android.widget.Button import in InstallController.
  • renderModuleQueue: startProgress() on RUNNING, stopProgress() on DONE.

Pure UI polish, no behaviour change to the install pipeline. Stacked on the slice-3 branch (ADFA-4476 modules-through-service) since the animation is driven by its renderModuleQueue observer.

…r action buttons

The 'Launch install' button in Module management was a plain Button, so it lacked
the indeterminate progress bar (the sweeping fill/empty bar at the bottom) that the
fast-install / backup / restore buttons show while working. Make it a ProgressButton
and drive it from the module-queue observer: start the animation on RUNNING, stop it
on DONE. startProgress() is idempotent (guards on isRunning), so re-observing after a
recreation does not restart it.

- fragment_deploy.xml: btn_launch_install is now org.iiab.controller.ProgressButton.
- DeployFragment / InstallController: field + constructor param typed ProgressButton
  (ProgressButton extends AppCompatButton, so existing calls are unchanged); drop the
  now-unused android.widget.Button import in InstallController.
- renderModuleQueue: startProgress() on RUNNING, stopProgress() on DONE.

Pure UI polish, no behaviour change to the install pipeline. Stacked on the slice-3
branch (ADFA-4476 modules-through-service) since the animation is driven by its
renderModuleQueue observer.
@luisguzman-adfa luisguzman-adfa force-pushed the feat/ADFA-4476-launch-button-progress branch from 8eebab0 to 143c6ae Compare July 2, 2026 12:45
@luisguzman-adfa luisguzman-adfa merged commit 1d5dd5e into main Jul 2, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the feat/ADFA-4476-launch-button-progress branch July 2, 2026 12:46
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