do not try updating contact photo if the given activity is destroyed
This commit is contained in:
parent
0a14414ba0
commit
e3b0caa577
|
@ -45,6 +45,10 @@ abstract class ContactActivity : SimpleActivity() {
|
|||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.centerCrop()
|
||||
|
||||
if (isDestroyed) {
|
||||
return
|
||||
}
|
||||
|
||||
Glide.with(this)
|
||||
.load(bitmap ?: path)
|
||||
.transition(DrawableTransitionOptions.withCrossFade())
|
||||
|
|
Loading…
Reference in New Issue