diff --git a/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt b/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt index a2267fee3..41d680f72 100644 --- a/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt +++ b/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt @@ -2,6 +2,7 @@ package org.fossify.messages.helpers import android.app.Activity import android.net.Uri +import android.view.View import org.fossify.commons.extensions.* import org.fossify.commons.helpers.SimpleContactsHelper import org.fossify.commons.helpers.ensureBackgroundThread @@ -51,7 +52,7 @@ fun ItemAttachmentDocumentBinding.setupDocumentPreview( fileSize.beVisible() fileSize.text = size.formatSize() } - } catch (e: Exception) { + } catch (_: Exception) { root.post { fileSize.beGone() } @@ -116,7 +117,7 @@ fun ItemAttachmentVcardBinding.setupVCardPreview( vcardTitle.setTextColor(textColor) vcardSubtitle.setTextColor(textColor) - arrayOf(vcardPhoto, vcardTitle, vcardSubtitle, viewContactDetails).forEach { + arrayOf(vcardPhoto, vcardTitle, vcardSubtitle, viewContactDetails).forEach { it.beGone() } @@ -135,7 +136,7 @@ fun ItemAttachmentVcardBinding.setupVCardPreview( null } - arrayOf(vcardPhoto, vcardTitle).forEach { + arrayOf(vcardPhoto, vcardTitle).forEach { it.beVisible() } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6d1c4a7ee..cb244c8ab 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] #jetbrains -kotlin = "2.2.21" +kotlin = "2.3.0" kotlinxSerializationJson = "1.9.0" #KSP ksp = "2.3.3"