mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix view flickering
This commit is contained in:
@@ -84,8 +84,10 @@ class EntryAttachmentsItemsAdapter(context: Context)
|
|||||||
} else {
|
} else {
|
||||||
entryAttachmentState.previewState = AttachmentState.COMPLETE
|
entryAttachmentState.previewState = AttachmentState.COMPLETE
|
||||||
setImageBitmap(imageLoaded)
|
setImageBitmap(imageLoaded)
|
||||||
expand(true, resources.getDimensionPixelSize(R.dimen.item_file_info_height)) {
|
if (visibility != View.VISIBLE) {
|
||||||
onBinaryPreviewLoaded?.invoke(entryAttachmentState)
|
expand(true, resources.getDimensionPixelSize(R.dimen.item_file_info_height)) {
|
||||||
|
onBinaryPreviewLoaded?.invoke(entryAttachmentState)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user