Browse Source

solve git conflicts

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 5 months ago
parent
commit
e10f3b1afd

+ 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