Minor readability change

This commit is contained in:
Naveen 2023-09-05 12:46:40 +05:30
parent dc81fddd05
commit cdca6d86c4
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.bumptech.glide.request.RequestOptions
data class Attendee(val contactId: Int, var name: String, val email: String, var status: Int, var photoUri: String, var isMe: Boolean, var relationship: Int) {
fun getPublicName() = if (name.isNotEmpty()) name else email
fun getPublicName() = name.ifEmpty { email }
fun updateImage(context: Context, imageView: ImageView, placeholder: Drawable) {
if (photoUri.isEmpty()) {