Route notification alerts through playback

This commit is contained in:
ajp_anton
2026-08-18 01:32:56 +00:00
parent 0089f839e3
commit 6aab879dbd
14 changed files with 251 additions and 32 deletions
@@ -4,8 +4,6 @@ import android.app.Application
import android.content.pm.PackageManager
import se.ajpanton.notificationsmaster.data.EncryptedNotificationLogStore
import se.ajpanton.notificationsmaster.settings.AppFilterSettingsStore
import se.ajpanton.notificationsmaster.settings.LoggingRuleStore
import se.ajpanton.notificationsmaster.settings.LoggingType
import se.ajpanton.notificationsmaster.settings.NotificationListenerComponentController
import se.ajpanton.notificationsmaster.settings.PerAppEventSettingsStore
@@ -22,12 +20,7 @@ class NotificationLogApplication : Application() {
* Reconcile it before the UI starts so fresh default rules can bind again.
*/
private fun synchronizeListenerComponent() {
val rules = LoggingRuleStore(this)
NotificationListenerComponentController.update(
this,
LoggingType.entries.associateWith(rules::ruleFor),
PerAppEventSettingsStore(this).hasEnabledEventOverride(),
)
NotificationListenerComponentController.synchronize(this)
}
private fun removeStaleAppStorage() {