From 6ff17351cc5d4e4ece6e0237fc81d1676400cf30 Mon Sep 17 00:00:00 2001 From: Justin Jacobs Date: Sat, 1 Apr 2017 12:07:07 -0400 Subject: [PATCH] Use subsamplingScaleImageView for PNGs --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 126ae05eb..de24dccad 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -186,7 +186,7 @@ class PhotoFragment : ViewPagerFragment() { } private fun addZoomableView() { - if (medium.isJpg() && isMenuVisible && view.subsampling_view.visibility == View.GONE) { + if ((medium.isJpg() || medium.isPng()) && isMenuVisible && view.subsampling_view.visibility == View.GONE) { view.subsampling_view.apply { beVisible() setDoubleTapZoomScale(1.4f)