From 8eaa4e92f28802082d94c06a63a51e4ed140d66d Mon Sep 17 00:00:00 2001 From: joragua Date: Thu, 3 Oct 2024 14:03:04 +0200 Subject: [PATCH] refactor: some ktlint changes --- .../com/owncloud/android/ui/preview/PreviewAudioFragment.kt | 2 +- .../com/owncloud/android/ui/preview/PreviewImageFragment.kt | 2 +- .../com/owncloud/android/ui/preview/PreviewImageViewModel.kt | 2 +- .../java/com/owncloud/android/ui/preview/PreviewTextFragment.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewAudioFragment.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewAudioFragment.kt index 8c430023b48..bf56144feb0 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewAudioFragment.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewAudioFragment.kt @@ -241,7 +241,7 @@ class PreviewAudioFragment : FileFragment() { super.onPrepareOptionsMenu(menu) val safeFile = file val accountName = account!!.name - previewAudioViewModel.filterMenuOptions(safeFile,accountName) + previewAudioViewModel.filterMenuOptions(safeFile, accountName) collectLatestLifecycleFlow(previewAudioViewModel.menuOptions) { menuOptions -> val hasWritePermission = safeFile.hasWritePermission diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.kt index 82a2bbe72ee..a04855a64e2 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.kt @@ -347,7 +347,7 @@ class PreviewImageFragment : FileFragment() { return if (isSVGFile(file)) Color.WHITE else Color.BLACK } - private fun showSnackbarMessage(){ + private fun showSnackbarMessage() { val snackbar = Snackbar.make(requireView(), R.string.sync_file_nothing_to_do_msg, Snackbar.LENGTH_LONG) val params = snackbar.view.layoutParams as ViewGroup.MarginLayoutParams params.setMargins(params.leftMargin, params.topMargin, params.rightMargin, 100) diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageViewModel.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageViewModel.kt index 18ee565ca42..6a800d50fee 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageViewModel.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewImageViewModel.kt @@ -49,7 +49,7 @@ class PreviewImageViewModel( private val contextProvider: ContextProvider, private val coroutinesDispatcherProvider: CoroutinesDispatcherProvider, getFileByIdAsStreamUseCase: GetFileByIdAsStreamUseCase, - ocFile:OCFile, + ocFile: OCFile, ) : ViewModel() { diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.kt index 865e50af86a..eb93a2aceef 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.kt @@ -229,7 +229,7 @@ class PreviewTextFragment : FileFragment() { mContainerActivity.storageManager?.let { val safeFile = file val accountName = it.account.name - previewTextViewModel.filterMenuOptions(safeFile,accountName) + previewTextViewModel.filterMenuOptions(safeFile, accountName) collectLatestLifecycleFlow(previewTextViewModel.menuOptions) { menuOptions -> val hasWritePermission = safeFile.hasWritePermission