shortening some code
This commit is contained in:
parent
d14151dbe3
commit
16f828580f
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
.load(getPathToLoad(medium))
|
.load(getPathToLoad(medium))
|
||||||
.apply(options)
|
.apply(options)
|
||||||
.listener(object : RequestListener<Bitmap> {
|
.listener(object : RequestListener<Bitmap> {
|
||||||
override fun onLoadFailed(e: GlideException?, model: Any?, target: com.bumptech.glide.request.target.Target<Bitmap>?, isFirstResource: Boolean): Boolean = false
|
override fun onLoadFailed(e: GlideException?, model: Any?, target: com.bumptech.glide.request.target.Target<Bitmap>?, isFirstResource: Boolean) = false
|
||||||
|
|
||||||
override fun onResourceReady(resource: Bitmap?, model: Any?, target: com.bumptech.glide.request.target.Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
override fun onResourceReady(resource: Bitmap?, model: Any?, target: com.bumptech.glide.request.target.Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||||
if (isFragmentVisible) {
|
if (isFragmentVisible) {
|
||||||
|
|
Loading…
Reference in a new issue