Skip to content

Refactor ActivityUtils into a non-static class - #52

Merged
zHd4 merged 2 commits into
masterfrom
refactor-activity-utils-into-a-non-static-class
Sep 22, 2026
Merged

zHd4 merged 2 commits into
masterfrom
refactor-activity-utils-into-a-non-static-class

Conversation

@zHd4

@zHd4 zHd4 commented Sep 21, 2026

Copy link
Copy Markdown
Owner
  • Refactor ActivityUtils from static methods into an instance-based utility tied to an ActivityBase.
  • Update activities and AuthHandler to use injected ActivityUtils instances for toasts, clipboard operations, and back-button handling.
  • Adjust AuthHandler tests to mock and verify ActivityUtils interactions.

…cross activities

* Convert `ActivityUtils` methods from static to instance methods and require an `ActivityBase` instance via constructor.
* Instantiate and use `ActivityUtils` in `AuthActivity`, `ExportActivity`, `FileViewerActivityBase`, `ImportActivity`, `ImportKeyActivity`, `KeyRecoveryActivity`, `SecretsUpdateActivity`, `SetupKeyActivity`, and `StartActivity`.
* Inject `ActivityUtils` into `AuthHandler` and update its `showToastMessage` implementation.
* Update `AuthHandlerTest` to mock and verify `ActivityUtils` interactions.
@zHd4 zHd4 self-assigned this Sep 22, 2026
@zHd4
zHd4 merged commit 7bfabc0 into master Sep 22, 2026
4 checks passed
@zHd4
zHd4 deleted the refactor-activity-utils-into-a-non-static-class branch September 22, 2026 10:36
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