mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
do not try updating contact photo if the given activity is destroyed
This commit is contained in:
@ -45,6 +45,10 @@ abstract class ContactActivity : SimpleActivity() {
|
|||||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||||
.centerCrop()
|
.centerCrop()
|
||||||
|
|
||||||
|
if (isDestroyed) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
Glide.with(this)
|
Glide.with(this)
|
||||||
.load(bitmap ?: path)
|
.load(bitmap ?: path)
|
||||||
.transition(DrawableTransitionOptions.withCrossFade())
|
.transition(DrawableTransitionOptions.withCrossFade())
|
||||||
|
Reference in New Issue
Block a user