From 3705a49a3f03fb741c1d2062133452920689955f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 4 Jan 2020 16:12:14 +0100 Subject: [PATCH] make the avatars at Select Favorite round too --- .../contacts/pro/adapters/SelectContactsAdapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/SelectContactsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/SelectContactsAdapter.kt index 2da0c8fd..f6ddffc0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/SelectContactsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/SelectContactsAdapter.kt @@ -155,7 +155,12 @@ class SelectContactsAdapter(val activity: SimpleActivity, var contacts: ArrayLis .centerCrop() if (!activity.isDestroyed && !activity.isFinishing) { - Glide.with(activity).load(contact.photoUri).transition(DrawableTransitionOptions.withCrossFade()).apply(options).into(contact_tmb) + Glide.with(activity) + .load(contact.photoUri) + .transition(DrawableTransitionOptions.withCrossFade()) + .apply(options) + .apply(RequestOptions.circleCropTransform()) + .into(contact_tmb) } } else { contact_tmb.setImageDrawable(contactDrawable)