Fix widgets context leak

pull/104/head
Koitharu 4 years ago
parent e739e3f9e0
commit da17c3495a
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -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())
}
}

@ -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)
}
}
Loading…
Cancel
Save