upgrade glide to 4.16.0
This commit is contained in:
parent
40d771d60f
commit
42c033c5ae
4 changed files with 7 additions and 7 deletions
|
@ -49,12 +49,12 @@ fun <T> T.makeFocusDialog(
|
||||||
.load(previewUri)
|
.load(previewUri)
|
||||||
.downsample(DownsampleStrategy.CENTER_INSIDE)
|
.downsample(DownsampleStrategy.CENTER_INSIDE)
|
||||||
.listener(object : RequestListener<Drawable> {
|
.listener(object : RequestListener<Drawable> {
|
||||||
override fun onLoadFailed(p0: GlideException?, p1: Any?, p2: Target<Drawable?>?, p3: Boolean): Boolean {
|
override fun onLoadFailed(p0: GlideException?, p1: Any?, p2: Target<Drawable?>, p3: Boolean): Boolean {
|
||||||
return 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 {
|
||||||
val width = resource!!.intrinsicWidth
|
val width = resource.intrinsicWidth
|
||||||
val height = resource.intrinsicHeight
|
val height = resource.intrinsicHeight
|
||||||
|
|
||||||
dialogBinding.focusIndicator.setImageSize(width, height)
|
dialogBinding.focusIndicator.setImageSize(width, height)
|
||||||
|
|
|
@ -306,7 +306,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
||||||
|
|
||||||
override fun onLoadFailed(
|
override fun onLoadFailed(
|
||||||
e: GlideException?,
|
e: GlideException?,
|
||||||
model: Any,
|
model: Any?,
|
||||||
target: Target<Drawable>,
|
target: Target<Drawable>,
|
||||||
isFirstResource: Boolean
|
isFirstResource: Boolean
|
||||||
): Boolean {
|
): Boolean {
|
||||||
|
|
|
@ -96,11 +96,11 @@ open class MediaPreviewImageView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
return 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 {
|
||||||
recalculateMatrix(width, height, resource)
|
recalculateMatrix(width, height, resource)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ diffx = "1.1.1"
|
||||||
emoji2 = "1.3.0"
|
emoji2 = "1.3.0"
|
||||||
espresso = "3.5.1"
|
espresso = "3.5.1"
|
||||||
filemoji-compat = "3.2.7"
|
filemoji-compat = "3.2.7"
|
||||||
glide = "4.15.1"
|
glide = "4.16.0"
|
||||||
# Deliberate downgrade, https://github.com/tuskyapp/Tusky/issues/3631
|
# Deliberate downgrade, https://github.com/tuskyapp/Tusky/issues/3631
|
||||||
glide-animation-plugin = "2.23.0"
|
glide-animation-plugin = "2.23.0"
|
||||||
gson = "2.10.1"
|
gson = "2.10.1"
|
||||||
|
|
Loading…
Reference in a new issue