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