Skip to content

Commit

Permalink
change customComponents name to customFactories
Browse files Browse the repository at this point in the history
Apply suggestion from code review
  • Loading branch information
NicolasBourdin88 committed Jun 13, 2024
1 parent 510f9f6 commit c32eee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/infomaniak/lib/core/utils/CoilUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object CoilUtils {
context: Context,
tokenInterceptorListener: TokenInterceptorListener? = null,
gifPreview: Boolean = false,
customComponents: List<Decoder.Factory> = emptyList()
customFactories: List<Decoder.Factory> = emptyList()
): ImageLoader {
return ImageLoader.Builder(context)
.crossfade(true)
Expand All @@ -68,7 +68,7 @@ object CoilUtils {
}
add(factory)
}
customComponents.forEach { add(it) }
customFactories.forEach { add(it) }
}
.okHttpClient {
OkHttpClient.Builder().apply {
Expand Down

0 comments on commit c32eee2

Please sign in to comment.