mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
ImageInfo.kt: remove call to updateThumbURL()
Before this commit, the updateThumbURL() method would attempt to derive a larger resolution thumbnail URL from the current thumbnail's width and height. This derived thumbnail URL would sometimes not match an actual URL. Even creating this thumbnail URL would sometimes fail when doing string manipulation. Both errors can cause issues, with the second one crashing the thread and preventing images from being loaded. This commit simply removes the call to updateThumbURL(). Images with their thumbnails now load correctly, especially with panoramic images.
This commit is contained in:
parent
ed42d85f67
commit
0ed9dac5d6
1 changed files with 0 additions and 1 deletions
|
|
@ -72,7 +72,6 @@ open class ImageInfo : Serializable {
|
|||
}
|
||||
|
||||
fun getThumbUrl(): String {
|
||||
updateThumbUrl()
|
||||
return thumbUrl ?: ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue