Skip to content

Commit

Permalink
refactor: some ktlint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Oct 3, 2024
1 parent deee240 commit 8eaa4e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PreviewImageViewModel(
private val contextProvider: ContextProvider,
private val coroutinesDispatcherProvider: CoroutinesDispatcherProvider,
getFileByIdAsStreamUseCase: GetFileByIdAsStreamUseCase,
ocFile:OCFile,
ocFile: OCFile,
) : ViewModel() {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8eaa4e9

Please sign in to comment.