nope, do not use Glide for loading non-animating gifs
This commit is contained in:
parent
129858119d
commit
1204eea382
|
@ -148,7 +148,6 @@ fun Activity.loadImage(path: String, target: MySquareImageView, horizontalScroll
|
|||
loadJpg(path, target, cropThumbnails)
|
||||
}
|
||||
} else if (path.isGif()) {
|
||||
if (animateGifs) {
|
||||
try {
|
||||
val gifDrawable = GifDrawable(path)
|
||||
target.setImageDrawable(gifDrawable)
|
||||
|
@ -164,9 +163,6 @@ fun Activity.loadImage(path: String, target: MySquareImageView, horizontalScroll
|
|||
} catch (e: OutOfMemoryError) {
|
||||
loadJpg(path, target, cropThumbnails)
|
||||
}
|
||||
} else {
|
||||
loadJpg(path, target, cropThumbnails)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue