mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-29 09:42:33 +01:00
make sure subsampling views background is transparent if the image fails to load
This commit is contained in:
parent
14bce04017
commit
0598d0f34c
@ -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 New Issue
Block a user