-
Notifications
You must be signed in to change notification settings - Fork 67
DROID-3746 Notifications | In-app settings + notifications permissions flow #2586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DROID-3746 Notifications | In-app settings + notifications permissions flow #2586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds and integrates in-app notification permissions and notifications settings features while deprecating older vault introduction screens. Key changes include updates to the NotificationPermissionManager and its tests, integration of notification badge state into view models and UI components (such as the ProfileSettingsScreen and VaultScreen), and corresponding resource and dependency injection updates.
Reviewed Changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
NotificationPermissionManagerImplTest.kt | Updated tests to validate new dialog flag logic and permission state changes. |
VaultViewModel.kt | Added notification permission monitoring logic to update badge state in the profile icon. |
NotificationPermissionManager.kt | Revised permission dialog logic and added new methods for refreshing and checking notification state. |
strings.xml, colors.xml, & Drawable Assets | Added new resources to support notification settings UI. |
ProfileSettingsViewModel.kt & ProfileSettingsFragment.kt | Integrated notification permission manager to drive badge display and settings navigation. |
VaultScreen.kt & VaultFragment.kt | Updated UI components to incorporate the notification badge based on permission status. |
DI Files (VaultDI.kt, ProfileDI.kt) | Injected NotificationPermissionManager for new notifications flows. |
Removal of IntroduceVaultScreen/Fragment | Deprecated screens related to vault introduction. |
Comments suppressed due to low confidence (1)
presentation/src/main/java/com/anytypeio/anytype/presentation/notifications/NotificationPermissionManager.kt:49
- It would be helpful to add a brief comment here explaining why the dialog is shown only if it has not been shown or dismissed, especially in light of previous count-based logic.
return when {
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?