Add ui wiring for archive thumbnail support.

This commit is contained in:
Clark
2024-05-22 19:02:20 -04:00
committed by Cody Henthorne
parent 3d382ee15e
commit 2a3cb80217
15 changed files with 451 additions and 100 deletions

View File

@@ -71,6 +71,8 @@ abstract class Attachment(
abstract val uri: Uri?
abstract val publicUri: Uri?
abstract val thumbnailUri: Uri?
val displayUri: Uri?
get() = uri ?: thumbnailUri
protected constructor(parcel: Parcel) : this(
contentType = parcel.readString()!!,

View File

@@ -172,7 +172,7 @@ class DatabaseAttachment : Attachment {
override fun equals(other: Any?): Boolean {
return other != null &&
other is DatabaseAttachment && other.attachmentId == attachmentId
other is DatabaseAttachment && other.attachmentId == attachmentId && other.uri == uri
}
override fun hashCode(): Int {