mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
minor style update
This commit is contained in:
parent
b0c5624e0e
commit
96ec75e545
@ -295,10 +295,10 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||
contact_tmb.setImageDrawable(placeholderImage)
|
||||
} else {
|
||||
val options = RequestOptions()
|
||||
.signature(ObjectKey(contact.getSignatureKey()))
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.error(placeholderImage)
|
||||
.centerCrop()
|
||||
.signature(ObjectKey(contact.getSignatureKey()))
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.error(placeholderImage)
|
||||
.centerCrop()
|
||||
|
||||
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
||||
contact.photoUri
|
||||
@ -307,10 +307,10 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||
}
|
||||
|
||||
Glide.with(activity)
|
||||
.load(itemToLoad)
|
||||
.apply(options)
|
||||
.apply(RequestOptions.circleCropTransform())
|
||||
.into(contact_tmb)
|
||||
.load(itemToLoad)
|
||||
.apply(options)
|
||||
.apply(RequestOptions.circleCropTransform())
|
||||
.into(contact_tmb)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -152,10 +152,10 @@ class SelectContactsAdapter(val activity: SimpleActivity, var contacts: ArrayLis
|
||||
contact_tmb.setImageDrawable(placeholderImage)
|
||||
} else {
|
||||
val options = RequestOptions()
|
||||
.signature(ObjectKey(contact.getSignatureKey()))
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.error(placeholderImage)
|
||||
.centerCrop()
|
||||
.signature(ObjectKey(contact.getSignatureKey()))
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.error(placeholderImage)
|
||||
.centerCrop()
|
||||
|
||||
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
||||
contact.photoUri
|
||||
@ -164,10 +164,10 @@ class SelectContactsAdapter(val activity: SimpleActivity, var contacts: ArrayLis
|
||||
}
|
||||
|
||||
Glide.with(activity)
|
||||
.load(itemToLoad)
|
||||
.apply(options)
|
||||
.apply(RequestOptions.circleCropTransform())
|
||||
.into(contact_tmb)
|
||||
.load(itemToLoad)
|
||||
.apply(options)
|
||||
.apply(RequestOptions.circleCropTransform())
|
||||
.into(contact_tmb)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user