mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
adding a divider under the contacts photo
This commit is contained in:
@ -182,14 +182,14 @@ class ViewContactActivity : ContactActivity() {
|
||||
val path = contact!!.photoUri
|
||||
currentContactPhotoPath = path
|
||||
|
||||
val options = RequestOptions()
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.centerCrop()
|
||||
|
||||
if (isDestroyed || isFinishing) {
|
||||
return
|
||||
}
|
||||
|
||||
val options = RequestOptions()
|
||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.centerCrop()
|
||||
|
||||
val wantedWidth = realScreenSize.x
|
||||
val wantedHeight = resources.getDimension(R.dimen.top_contact_image_height).toInt()
|
||||
|
||||
@ -202,6 +202,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
override fun onResourceReady(resource: Drawable?, model: Any?, target: Target<Drawable>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||
contact_photo.background = ColorDrawable(0)
|
||||
contact_photo_bottom_shadow.beVisible()
|
||||
contact_photo_divider.beInvisible()
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user