mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-08 23:19:55 +00: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
@ -138,7 +138,8 @@ class RemoteFileBrowserItemsListViewHolder(
|
|||||||
|
|
||||||
private fun calculateSelectability(item: RemoteFileBrowserItem) {
|
private fun calculateSelectability(item: RemoteFileBrowserItem) {
|
||||||
selectable = item.isFile &&
|
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) {
|
private fun calculateClickability(item: RemoteFileBrowserItem, selectableItem: Boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user