diff options
author | Allan Wang <me@allanwang.ca> | 2021-04-18 18:04:01 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-04-18 18:04:01 -0700 |
commit | 9523485533fa6abf76dbf9772fba90531084c984 (patch) | |
tree | 1bb55acd8bd234b3e7f6f6dc8049f37ce703964e /app/src | |
parent | 1f2460b33405754ba0d9d940b1af98d65b8cbaa4 (diff) | |
download | frost-9523485533fa6abf76dbf9772fba90531084c984.tar.gz frost-9523485533fa6abf76dbf9772fba90531084c984.tar.bz2 frost-9523485533fa6abf76dbf9772fba90531084c984.zip |
Fix notification widget service
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/widgets/NotificationWidget.kt | 12 |
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) |