Skip to content

Commit

Permalink
KtLint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Oct 24, 2023
1 parent 4fdb246 commit fb967b1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,11 @@ class MainFileListFragment : Fragment(),
/* TransfersViewModel observables */
// Observe the transfers
collectLatestLifecycleFlow(transfersViewModel.transfersWithSpaceStateFlow) { transfers ->
val newlySucceededTransfers = transfers.map { it.first }.filter { it.status == TransferStatus.TRANSFER_SUCCEEDED
&& it.accountName == AccountUtils.getCurrentOwnCloudAccount(requireContext()).name }
val newlySucceededTransfers = transfers.map { it.first }.filter { it.status == TransferStatus.TRANSFER_SUCCEEDED &&
it.accountName == AccountUtils.getCurrentOwnCloudAccount(requireContext()).name }
if (succeededTransfers == null) {
succeededTransfers = newlySucceededTransfers
}
else if (succeededTransfers != newlySucceededTransfers) {
} else if (succeededTransfers != newlySucceededTransfers) {
fileOperationsViewModel.performOperation(
FileOperation.RefreshFolderOperation(
folderToRefresh = mainFileListViewModel.getFile(),
Expand Down

0 comments on commit fb967b1

Please sign in to comment.