Skip to content

Commit

Permalink
Updated documentation around ImageLoaderFactory (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteinn authored Oct 20, 2020
1 parent f9eddf2 commit 9debc77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ If you are using the `io.coil-kt:coil` artifact, you can set the singleton [`Ima
class MyApplication : Application(), ImageLoaderFactory {

override fun newImageLoader(): ImageLoader {
return ImageLoader.Builder(context)
return ImageLoader.Builder(applicationContext)
.crossfade(true)
.okHttpClient {
OkHttpClient.Builder()
.cache(CoilUtils.createDefaultCache(context))
.cache(CoilUtils.createDefaultCache(applicationContext))
.build()
}
.build()
Expand Down

0 comments on commit 9debc77

Please sign in to comment.