Route notification alerts through playback
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user