Skip to content

Commit 26613a2

Browse files
committed
Merge branch 'tabs-database' of github.com:wikimedia/apps-android-wikipedia into tabs-database
2 parents f4e250a + 9dbd051 commit 26613a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/org/wikipedia/gallery/GalleryItemFragment.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ class GalleryItemFragment : Fragment(), MenuProvider {
177177
// SVG thumbnails can be rendered with language-specific translations, so let's
178178
// get the correct URL that points to the appropriate language.
179179
url = ImageUrlUtil.insertLangIntoThumbUrl(url, activityViewModel.wikiSite.languageCode)
180+
} else if (mediaInfo?.mime?.contains("gif") == true) {
181+
// In the case of GIF files, just use the original url, since differently-scaled
182+
// sizes of the image are not always guaranteed to be animated.
183+
url = mediaInfo?.originalUrl ?: url
180184
}
181185
loadImage(url)
182186
}

0 commit comments

Comments
 (0)