set isSubsamplingVisible to false at some errors too

This commit is contained in:
tibbi 2018-09-20 13:55:45 +02:00
parent 1110c80b66
commit f95da6b83a

View file

@ -391,11 +391,13 @@ class PhotoFragment : ViewPagerFragment() {
override fun onImageLoadError(e: Exception) { override fun onImageLoadError(e: Exception) {
view.photo_view.isZoomable = true view.photo_view.isZoomable = true
background = ColorDrawable(Color.TRANSPARENT) background = ColorDrawable(Color.TRANSPARENT)
isSubsamplingVisible = false
beGone() beGone()
} }
override fun onPreviewLoadError(e: Exception?) { override fun onPreviewLoadError(e: Exception?) {
background = ColorDrawable(Color.TRANSPARENT) background = ColorDrawable(Color.TRANSPARENT)
isSubsamplingVisible = false
beGone() beGone()
} }
}) })