Fix widgets context leak

This commit is contained in:
Koitharu
2022-02-11 19:23:41 +02:00
parent cbcf98e1d4
commit 03590f4b82
2 changed files with 2 additions and 2 deletions

View File

@@ -7,6 +7,6 @@ import org.koin.android.ext.android.get
class RecentWidgetService : RemoteViewsService() {
override fun onGetViewFactory(intent: Intent): RemoteViewsFactory {
return RecentListFactory(this, get(), get())
return RecentListFactory(applicationContext, get(), get())
}
}

View File

@@ -12,6 +12,6 @@ class ShelfWidgetService : RemoteViewsService() {
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
)
return ShelfListFactory(this, get(), get(), widgetId)
return ShelfListFactory(applicationContext, get(), get(), widgetId)
}
}