make sure subsampling views background is transparent if the image fails to load
This commit is contained in:
parent
14bce04017
commit
0598d0f34c
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue