From ad7a5cf2dbbe2157c19dc665055f609be7d99541 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 18 Nov 2021 22:56:45 +0100 Subject: [PATCH] initialize PersistentNotificationPlugin first --- .../androidaps/dependencyInjection/PluginsModule.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dependencyInjection/PluginsModule.kt b/app/src/main/java/info/nightscout/androidaps/dependencyInjection/PluginsModule.kt index 6d58752f2b..5151ec7dac 100644 --- a/app/src/main/java/info/nightscout/androidaps/dependencyInjection/PluginsModule.kt +++ b/app/src/main/java/info/nightscout/androidaps/dependencyInjection/PluginsModule.kt @@ -59,6 +59,12 @@ abstract class PluginsModule { @AllConfigs @IntoMap @IntKey(0) + abstract fun bindPersistentNotificationPlugin(plugin: PersistentNotificationPlugin): PluginBase + + @Binds + @AllConfigs + @IntoMap + @IntKey(5) abstract fun bindOverviewPlugin(plugin: OverviewPlugin): PluginBase @Binds @@ -271,12 +277,6 @@ abstract class PluginsModule { @IntKey(340) abstract fun bindStatusLinePlugin(plugin: StatusLinePlugin): PluginBase - @Binds - @AllConfigs - @IntoMap - @IntKey(350) - abstract fun bindPersistentNotificationPlugin(plugin: PersistentNotificationPlugin): PluginBase - @Binds @AllConfigs @IntoMap