File tree Expand file tree Collapse file tree
app/src/main/java/com/owncloud/android/ui/fragment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ class OCFileListBottomSheetDialog(
178178 // Check collabora capabilities
179179 creatorsActions.addAll(creatorsActionsFromCollabora())
180180
181+ displayCreatorsActions(creatorsActions)
182+ }
183+
184+ private fun displayCreatorsActions (creatorsActions : List <CreatorAction >) {
181185 if (creatorsActions.isEmpty()) {
182186 // If no creators at all, hide whole container (comprising separator)
183187 binding.creatorsOverviewContainer.visibility = View .GONE
@@ -210,7 +214,7 @@ class OCFileListBottomSheetDialog(
210214 }
211215 }
212216
213- private fun creatorsActionsFromDirectEditing (): ArrayList <CreatorAction > {
217+ private fun creatorsActionsFromDirectEditing (): List <CreatorAction > {
214218 val creatorsActions = ArrayList <CreatorAction >()
215219 ArbitraryDataProviderImpl (context)
216220 .getValue(user, ArbitraryDataProvider .DIRECT_EDITING )
@@ -239,7 +243,7 @@ class OCFileListBottomSheetDialog(
239243 return creatorsActions
240244 }
241245
242- private fun creatorsActionsFromCollabora (): ArrayList <CreatorAction > {
246+ private fun creatorsActionsFromCollabora (): List <CreatorAction > {
243247 val creatorsActions = ArrayList <CreatorAction >()
244248
245249 fileActivity.capabilities
You can’t perform that action at this time.
0 commit comments