From 4a2bf0d6c625269c72f6fcac47e7173f166b40b3 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 19 Jul 2019 16:18:47 +0200 Subject: [PATCH] Cleaning Lint --- .../riotx/features/media/ImageContentRenderer.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt b/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt index ddd23564..4ae9f473 100644 --- a/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt +++ b/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt @@ -120,12 +120,19 @@ class ImageContentRenderer @Inject constructor(private val activeSessionHolder: glideRequest .listener(object: RequestListener { - override fun onLoadFailed(e: GlideException?, model: Any?, target: Target?, isFirstResource: Boolean): Boolean { + override fun onLoadFailed(e: GlideException?, + model: Any?, + target: Target?, + isFirstResource: Boolean): Boolean { callback?.invoke(false) return false } - override fun onResourceReady(resource: Drawable?, model: Any?, target: Target?, dataSource: DataSource?, isFirstResource: Boolean): Boolean { + override fun onResourceReady(resource: Drawable?, + model: Any?, + target: Target?, + dataSource: DataSource?, + isFirstResource: Boolean): Boolean { callback?.invoke(true) return false }