make sure subsampling views background is transparent if the image fails to load

This commit is contained in:
tibbi 2017-04-12 21:55:10 +02:00
parent 14bce04017
commit 0598d0f34c

View file

@ -212,9 +212,11 @@ class PhotoFragment : ViewPagerFragment() {
} }
override fun onImageLoadError(p0: java.lang.Exception?) { override fun onImageLoadError(p0: java.lang.Exception?) {
background = ColorDrawable(Color.TRANSPARENT)
} }
override fun onPreviewLoadError(p0: java.lang.Exception?) { override fun onPreviewLoadError(p0: java.lang.Exception?) {
background = ColorDrawable(Color.TRANSPARENT)
} }
}) })
} }