aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt b/app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt
index d4176ece..9efe83f6 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt
@@ -147,10 +147,14 @@ private fun RemoteViews.setIcon(
}
@AndroidEntryPoint
-class NotificationWidgetService @Inject internal constructor(
- private val themeProvider: ThemeProvider,
- private val notifDao: NotificationDao
-) : RemoteViewsService() {
+class NotificationWidgetService : RemoteViewsService() {
+
+ @Inject
+ lateinit var themeProvider: ThemeProvider
+
+ @Inject
+ lateinit var notifDao: NotificationDao
+
override fun onGetViewFactory(intent: Intent): RemoteViewsFactory =
NotificationWidgetDataProvider(this, intent, themeProvider, notifDao)