From c9a084c4e4acfcd2bfd1f9a6e02b0563470319c9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 8 Aug 2018 16:05:06 +0200 Subject: [PATCH] allow using the PhotoView zoom if loading Subsampling fails --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 + 1 file changed, 1 insertion(+) 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 8804784fc..3a05b50ae 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -322,6 +322,7 @@ class PhotoFragment : ViewPagerFragment() { } override fun onImageLoadError(e: Exception) { + view.photo_view.isZoomable = true background = ColorDrawable(Color.TRANSPARENT) beGone() }