From 0598d0f34cedc4639b1891db6a2d7423cf68be0d Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 12 Apr 2017 21:55:10 +0200 Subject: [PATCH] make sure subsampling views background is transparent if the image fails to load --- .../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 71634fd7b..ca04c9fc6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -212,9 +212,11 @@ class PhotoFragment : ViewPagerFragment() { } override fun onImageLoadError(p0: java.lang.Exception?) { + background = ColorDrawable(Color.TRANSPARENT) } override fun onPreviewLoadError(p0: java.lang.Exception?) { + background = ColorDrawable(Color.TRANSPARENT) } }) }