mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-24 06:27:18 +02: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)
|
contact_tmb.setImageDrawable(placeholderImage)
|
||||||
} else {
|
} else {
|
||||||
val options = RequestOptions()
|
val options = RequestOptions()
|
||||||
.signature(ObjectKey(contact.getSignatureKey()))
|
.signature(ObjectKey(contact.getSignatureKey()))
|
||||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||||
.error(placeholderImage)
|
.error(placeholderImage)
|
||||||
.centerCrop()
|
.centerCrop()
|
||||||
|
|
||||||
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
||||||
contact.photoUri
|
contact.photoUri
|
||||||
@ -307,10 +307,10 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
|||||||
}
|
}
|
||||||
|
|
||||||
Glide.with(activity)
|
Glide.with(activity)
|
||||||
.load(itemToLoad)
|
.load(itemToLoad)
|
||||||
.apply(options)
|
.apply(options)
|
||||||
.apply(RequestOptions.circleCropTransform())
|
.apply(RequestOptions.circleCropTransform())
|
||||||
.into(contact_tmb)
|
.into(contact_tmb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,10 +152,10 @@ class SelectContactsAdapter(val activity: SimpleActivity, var contacts: ArrayLis
|
|||||||
contact_tmb.setImageDrawable(placeholderImage)
|
contact_tmb.setImageDrawable(placeholderImage)
|
||||||
} else {
|
} else {
|
||||||
val options = RequestOptions()
|
val options = RequestOptions()
|
||||||
.signature(ObjectKey(contact.getSignatureKey()))
|
.signature(ObjectKey(contact.getSignatureKey()))
|
||||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||||
.error(placeholderImage)
|
.error(placeholderImage)
|
||||||
.centerCrop()
|
.centerCrop()
|
||||||
|
|
||||||
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
val itemToLoad: Any? = if (contact.photoUri.isNotEmpty()) {
|
||||||
contact.photoUri
|
contact.photoUri
|
||||||
@ -164,10 +164,10 @@ class SelectContactsAdapter(val activity: SimpleActivity, var contacts: ArrayLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
Glide.with(activity)
|
Glide.with(activity)
|
||||||
.load(itemToLoad)
|
.load(itemToLoad)
|
||||||
.apply(options)
|
.apply(options)
|
||||||
.apply(RequestOptions.circleCropTransform())
|
.apply(RequestOptions.circleCropTransform())
|
||||||
.into(contact_tmb)
|
.into(contact_tmb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user