Commit eae58505 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

inject async picasso:

parent 1783753f
......@@ -154,6 +154,9 @@ class AlbumsScreenController :
private fun render(viewState: AlbumsScreenViewState.SomeError) =
showError(viewState.exception)
@Inject
lateinit var picassoAsync:Picasso
private fun render(viewState: AlbumsScreenViewState.AlbumsListLoaded) {
(headersRecyclerView.adapter as AlbumsHeaderAdapter).setItems(viewState.list)
......@@ -170,7 +173,7 @@ class AlbumsScreenController :
Timber.d("URL TO LOAD BG $urlToLoadBg")
urlToLoadBg.let {
Picasso.Builder(activity!!).build()
picassoAsync
.load(it)
.transform(BlurTransformation(activity, 13, 2))
.transform(ColorFilterTransformation(0xCC000000.toInt()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment