mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
adding some GIF and SVG improvements
This commit is contained in:
@ -374,8 +374,10 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
|
||||
mView.apply {
|
||||
gestures_view.beGone()
|
||||
gif_view.setInputSource(source)
|
||||
gif_view_frame.beVisible()
|
||||
ensureBackgroundThread {
|
||||
gif_view.setInputSource(source)
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
loadBitmap()
|
||||
@ -385,12 +387,14 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
}
|
||||
|
||||
private fun loadSVG() {
|
||||
if (context != null) {
|
||||
Glide.with(context!!)
|
||||
.`as`(PictureDrawable::class.java)
|
||||
.listener(SvgSoftwareLayerSetter())
|
||||
.load(mMedium.path)
|
||||
.into(mView.gestures_view)
|
||||
}
|
||||
}
|
||||
|
||||
private fun loadBitmap(addZoomableView: Boolean = true) {
|
||||
if (context == null) {
|
||||
|
Reference in New Issue
Block a user