forked from GitHub-Mirror/riotX-android
Cleaning Lint
This commit is contained in:
parent
3965218bf9
commit
4a2bf0d6c6
@ -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 New Issue
Block a user