From f95da6b83aa5e2770356c32c41f00402bf3c30af Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 20 Sep 2018 13:55:45 +0200 Subject: [PATCH] set isSubsamplingVisible to false at some errors too --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 ++ 1 file changed, 2 insertions(+) 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 47f78b822..4263b1110 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -391,11 +391,13 @@ class PhotoFragment : ViewPagerFragment() { override fun onImageLoadError(e: Exception) { view.photo_view.isZoomable = true background = ColorDrawable(Color.TRANSPARENT) + isSubsamplingVisible = false beGone() } override fun onPreviewLoadError(e: Exception?) { background = ColorDrawable(Color.TRANSPARENT) + isSubsamplingVisible = false beGone() } })