From e872d4efbc0a86a5d4ffbd0308e2b7d2aeb20399 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 16 Aug 2023 12:56:00 +0200 Subject: [PATCH] Fix kt formatting Signed-off-by: Andy Scherzinger --- .../com/owncloud/android/ui/fragment/SharedListFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/SharedListFragment.kt b/app/src/main/java/com/owncloud/android/ui/fragment/SharedListFragment.kt index 05d76ad9de41..dfd4a2952f25 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/SharedListFragment.kt +++ b/app/src/main/java/com/owncloud/android/ui/fragment/SharedListFragment.kt @@ -123,8 +123,8 @@ class SharedListFragment : OCFileListFragment(), Injectable { lifecycleScope.launch { isLoading = true if (partialFiles != null) { - val files = partialFiles.toMutableSet().mapNotNull {partialFile -> - fetchFileData(partialFile).also {fetched -> + val files = partialFiles.toMutableSet().mapNotNull { partialFile -> + fetchFileData(partialFile).also { fetched -> if (fetched == null) { DisplayUtils.showSnackMessage(requireActivity(), R.string.error_retrieving_file) } @@ -176,7 +176,7 @@ class SharedListFragment : OCFileListFragment(), Injectable { override fun onFileActionChosen(itemId: Int, checkedFiles: MutableSet?): Boolean { // fetch all files and run selected action if (itemId != R.id.action_select_all_action_menu && itemId != R.id.action_deselect_all_action_menu) { - fetchAllAndRun(checkedFiles) {files -> + fetchAllAndRun(checkedFiles) { files -> exitSelectionMode() super.onFileActionChosen(itemId, files) }