浏览代码

solve git conflicts

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 5 月之前
父节点
当前提交
e10f3b1afd
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

+ 4 - 0
app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

@@ -385,6 +385,10 @@ class OCFileListDelegate(
 
     @Suppress("ReturnCount")
     private fun getShareIconIdAndContentDescriptionId(holder: ListViewHolder, file: OCFile): Pair<Int, Int>? {
+        if (!MDMConfig.sharingSupport(context)) {
+            return null
+        }
+
         if (file.isOfflineOperation) return null
 
         if (holder !is OCFileListItemViewHolder && file.unreadCommentsCount != 0) return null