add an activity check at SelectContacts adapter
This commit is contained in:
parent
2a6af180eb
commit
ba76c18bbe
|
@ -119,7 +119,9 @@ class SelectContactsAdapter(val activity: SimpleActivity, val contacts: List<Con
|
|||
.error(contactDrawable)
|
||||
.centerCrop()
|
||||
|
||||
if (activity.isActivityDestroyed()) {
|
||||
Glide.with(activity).load(contact.photoUri).transition(DrawableTransitionOptions.withCrossFade()).apply(options).into(contact_tmb)
|
||||
}
|
||||
} else {
|
||||
contact_tmb.setImageDrawable(contactDrawable)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue