From 544f92104a0850649fa21e4e9abd722132963fa9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 7 Jan 2017 19:48:37 +0100 Subject: [PATCH] hide subsamplingscaleimageview if the image failed to load --- .../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 b3911eb0b..31b340227 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -105,6 +105,7 @@ class PhotoFragment : ViewPagerFragment() { } override fun onImageLoadError(p0: Exception?) { + visibility = View.GONE } override fun onPreviewLoadError(p0: Exception?) {