mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
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:
parent
472304c4a6
commit
d96ca1eb67
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue