block selection of encrypted files as well as files that are not allowed to be re-shared

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-06-09 00:12:12 +02:00
parent 472304c4a6
commit d96ca1eb67
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -138,7 +138,8 @@ class RemoteFileBrowserItemsListViewHolder(
private fun calculateSelectability(item: RemoteFileBrowserItem) {
selectable = item.isFile &&
(mimeTypeSelectionFilter == null || item.mimeType?.startsWith(mimeTypeSelectionFilter) == true)
(mimeTypeSelectionFilter == null || item.mimeType?.startsWith(mimeTypeSelectionFilter) == true) &&
(item.isAllowedToReShare && !item.isEncrypted)
}
private fun calculateClickability(item: RemoteFileBrowserItem, selectableItem: Boolean) {