Repository navigation
Conversation
jawzf
force-pushed
the
feat/025-notification-auto-dismiss
branch
from
October 23, 2026 12:30
3551b98 to
cd730b7
Compare
Adds an Auto-dismiss notifications page under Notifications. Pick apps and a time for each (1 min to 24 h); their clearable notifications are dismissed once that time has passed since the latest change. Each app's notification categories are learned as they arrive and can be switched off to keep them. Rows have a remove button and show how many notifications were cleared since the app was added (count only). Ongoing notifications are never touched, and a group summary is cleared with its last child. Pending dismissals are resynced when the listener connects and whenever the settings change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jawzf
force-pushed
the
feat/025-notification-auto-dismiss
branch
from
October 25, 2026 09:53
cd730b7 to
39c8058
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Auto-dismiss notifications under Notifications and Alerts: choose apps, give each its own time (1 min to 24 h), and their notifications are cleared once they've been showing that long.
Ranking. Only apps on the list are recorded.NotificationRepostFilter) keep the existing timer.LiveUpdateSnoozeris holding. A group summary is cleared with its last child, never on its own timer.How:
NotificationAutoDismisser(next toLiveUpdateSnoozer) keeps one main-threadHandlercallback per notification key. On listener connect and on every settings change it resyncs from the active notifications: overdue ones are dismissed straight away, the rest are scheduled. No polling, alarms or wakelocks; in deep Doze a dismissal can run a little late. The deadline rule is a pure function (AutoDismissMath.kt) with unit tests. Settings useSettingsRepository; the page reusesAppSelectionSheet,FeatureCard,ConfigSliderItemandIconToggleItem.Type of change
UI changes
The new entry under Notifications and Alerts.
The page: a chosen app with its time and cleared count, and the remove button.
An app's sheet: time, cleared count and categories.
An app's categories, learned from its notifications.
The help text.
Checklist
develop(notmain)../gradlew assembleDebug../gradlew testDebugUnitTest.SettingsRepositoryfor keys and getter/setter methods.FeatureRegistry.ktfor search indexing.ui/core/(RoundedCardContainer,IconToggleItem, etc.).res/values/strings.xmland drawables use rounded variants (R.drawable.rounded_*).🤖 Generated with Claude Code