mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-01 11:08:02 +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?) {
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user