diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/compose/AttachmentAdapter.kt b/presentation/src/main/java/com/moez/QKSMS/feature/compose/AttachmentAdapter.kt index 8d407b42..8ec5cf4c 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/compose/AttachmentAdapter.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/compose/AttachmentAdapter.kt @@ -73,8 +73,6 @@ class AttachmentAdapter @Inject constructor( override fun onBindViewHolder(holder: QkViewHolder, position: Int) { val attachment = getItem(position) - holder.fileName.visibility = View.GONE - if (attachment.isVCard(context)) { val displayName = Ezvcard.parse( String(attachment.getResourceBytes(context)) @@ -84,6 +82,8 @@ class AttachmentAdapter @Inject constructor( return } + holder.fileName.visibility = View.GONE + // if attachment uri is missing if (!attachment.getUri().resourceExists(context)) { holder.thumbnail.setImageResource(android.R.drawable.ic_delete)