From 9debc7798c15c29a2313c7e4975403591b31c49f Mon Sep 17 00:00:00 2001 From: Matteo Innocenti <matteo@appstyx.com> Date: Tue, 20 Oct 2020 19:23:23 +0200 Subject: [PATCH] Updated documentation around ImageLoaderFactory (#556) --- docs/getting_started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index 37f0cc14d7..ec07510307 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -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()