Last active
September 26, 2019 09:34
-
-
Save rcmkt/a174fbc82f1586517d198f67f6866bb7 to your computer and use it in GitHub Desktop.
GlideListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object : RequestListener<Drawable> { | |
override fun onLoadFailed( | |
e: GlideException?, | |
model: Any?, | |
target: com.bumptech.glide.request.target.Target<Drawable>?, | |
isFirstResource: Boolean | |
): Boolean { | |
scheduleStartPostponedTransitions() | |
return false | |
} | |
override fun onResourceReady( | |
resource: Drawable?, | |
model: Any?, | |
target: com.bumptech.glide.request.target.Target<Drawable>?, | |
dataSource: DataSource?, | |
isFirstResource: Boolean | |
): Boolean { | |
scheduleStartPostponedTransitions() | |
return false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment