mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 04:52:00 +03:00
Cleaning Lint
This commit is contained in:
parent
3965218bf9
commit
4a2bf0d6c6
1 changed files with 9 additions and 2 deletions
|
@ -120,12 +120,19 @@ class ImageContentRenderer @Inject constructor(private val activeSessionHolder:
|
|||
|
||||
glideRequest
|
||||
.listener(object: RequestListener<Drawable> {
|
||||
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
|
||||
override fun onLoadFailed(e: GlideException?,
|
||||
model: Any?,
|
||||
target: Target<Drawable>?,
|
||||
isFirstResource: Boolean): Boolean {
|
||||
callback?.invoke(false)
|
||||
return false
|
||||
}
|
||||
|
||||
override fun onResourceReady(resource: Drawable?, model: Any?, target: Target<Drawable>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||
override fun onResourceReady(resource: Drawable?,
|
||||
model: Any?,
|
||||
target: Target<Drawable>?,
|
||||
dataSource: DataSource?,
|
||||
isFirstResource: Boolean): Boolean {
|
||||
callback?.invoke(true)
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue