Skip to content

fix: Inject appCtx in BackupAgent - #318

Merged
LouisCAD merged 1 commit into
mainfrom
init-appctx-in-backup-agent
Sep 28, 2026
Merged

LouisCAD merged 1 commit into
mainfrom
init-appctx-in-backup-agent

Conversation

@LouisCAD

Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused lifecycle fix is consistently applied across both product flavors with no identified issues.

Review effort: Balanced
Findings: None

What changed in this PR

Ensures Splitties’ application context is available when Android initializes backup agents outside normal application startup.

Changes:

  • Injects appCtx during backup-agent context attachment when uninitialized.
  • Applies the fix to both standard and F-Droid flavors.
File Description
app/​src/​standard/​kotlin/​com/​infomaniak/​auth/​backup/​AuthenticatorFullBackupAgent.kt Initializes appCtx for standard backups.
app/​src/​fdroid/​kotlin/​com/​infomaniak/​auth/​backup/​AuthenticatorFullBackupAgent.kt Initializes appCtx for F-Droid backups.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LouisCAD
LouisCAD merged commit 5eacc6b into main Sep 28, 2026
14 checks passed
@LouisCAD
LouisCAD deleted the init-appctx-in-backup-agent branch September 28, 2026 09:44
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.

3 participants