Compare commits

..
4 Commits
Author SHA1 Message Date
aminecmi 7f45db0473 Bakcground image caching issues should be fixed. 2021-01-10 21:20:33 +01:00
davidoskkyandGitHub d89423b9ac Fix crash when loading image that doesn't exist (#329)
* Wait until the image is downloaded

* Use timeout
2021-01-10 21:14:23 +01:00
aminecmi 25fd869c01 Closes #322. 2021-01-10 12:13:19 +01:00
davidoskkyandGitHub d1d956b77a Improve image caching (#327)
* Update to support rebase

* Prevent Glide from opening svg images
2021-01-10 05:08:40 +01:00
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -36,6 +36,12 @@
- Closing #178. Expending images on tap.
- Closing #323. Old issue with textview not having the right color.
- Closing #324. Svg images loading crashes the app.
- Closing #322. App crashed because of svg images.
**1.6.x**
- Handling hidden tags.
@@ -56,6 +62,8 @@
- Fixes #215, #208.
- Fixes #328.
**1.5.7.x**
- Added confirmation to the mark as read and update menues.
@@ -156,7 +156,7 @@ data class Item(
fun preloadImages(context: Context) : Boolean {
val imageUrls = this.getImages()
val glideOptions = RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.ALL)
val glideOptions = RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.ALL).timeout(10000)
try {
@@ -164,7 +164,7 @@ data class Item(
if ( URLUtil.isValidUrl(url)) {
val image = Glide.with(context).asBitmap()
.apply(glideOptions)
.load(url).submit().get()
.load(url).submit()
}
}
} catch (e : Error) {