Skip to content

feat: Remove legacy notification permission request from MainActivity - #285

Merged
LunarX merged 1 commit into
mainfrom
remove-legacy-notification-permission
Oct 27, 2026
Merged

LunarX merged 1 commit into
mainfrom
remove-legacy-notification-permission

Conversation

@LunarX

@LunarX LunarX commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The onboarding's notifications step now requests it; AlarmReceiver already skips posting when notifications are disabled.

@LunarX LunarX self-assigned this Oct 27, 2026
Copilot AI balanced review requested due to automatic review settings October 27, 2026 14:34
@LunarX LunarX changed the title Remove legacy notification permission request from MainActivity feat: Remove legacy notification permission request from MainActivity Oct 27, 2026

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.

🟢 Approval recommended

The narrow removal matches the existing onboarding permission flow and receiver guard, with no unresolved issues identified.

No open issues 🎉

What changed in this PR

Removes the legacy notification permission prompt from MainActivity, leaving onboarding responsible for requesting permission.

Changes:

  • Removes the permission launcher, fresh-start request, helper, and unused imports.
  • Updates app documentation to describe onboarding ownership and the existing notification guard in AlarmReceiver.
File Description
app/​src/​main/​java/​com/​infomaniak/​calendar/​MainActivity.kt Removes the activity-level notification permission request.
app/​AGENTS.md Documents the onboarding-only permission flow.

Review effort: Balanced

@LunarX
LunarX force-pushed the remove-legacy-notification-permission branch from e6f3fe4 to f98353f Compare October 27, 2026 14:36
@LunarX
LunarX enabled auto-merge October 27, 2026 14:36
The onboarding's notifications step now requests it; AlarmReceiver already skips posting when notifications are disabled.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@LunarX
LunarX force-pushed the remove-legacy-notification-permission branch from f98353f to f57901b Compare October 27, 2026 15:34
@sonarqubecloud

Copy link
Copy Markdown

@LunarX
LunarX disabled auto-merge October 27, 2026 15:42
@LunarX
LunarX merged commit c358f54 into main Oct 27, 2026
10 checks passed
@LunarX
LunarX deleted the remove-legacy-notification-permission branch October 27, 2026 15:43
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