diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt index 45efb128e..7a30214d5 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt @@ -25,7 +25,6 @@ import android.provider.OpenableColumns import android.util.Log import androidx.core.net.toUri import com.infomaniak.swisstransfer.ui.components.FileUi -import com.infomaniak.swisstransfer.ui.screen.newtransfer.NewTransferViewModel.Companion.LOCAL_COPY_FOLDER import com.infomaniak.swisstransfer.ui.utils.FileNameUtils import dagger.hilt.android.qualifiers.ApplicationContext import io.sentry.Sentry diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferViewModel.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferViewModel.kt index 6f479a1d8..e40eb311a 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferViewModel.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferViewModel.kt @@ -59,8 +59,8 @@ class NewTransferViewModel @Inject constructor( viewModelScope.launch(Dispatchers.IO) { if (isFirstViewModelCreation) { isFirstViewModelCreation = false - // Remove old imported files in case it would've crashed or similar to start with a clean slate. This is required for - // already imported files restoration to not pick up old files in some extreme cases. + // Remove old imported files in case it would've crashed or similar to start with a clean slate. This is required + // for already imported files restoration to not pick up old files in some extreme cases. importationFilesManager.removeLocalCopyFolder() } else { importationFilesManager.restoreAlreadyImportedFiles() diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/UploadLocalStorage.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/UploadLocalStorage.kt index 4a48856ad..222b1fec8 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/UploadLocalStorage.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/UploadLocalStorage.kt @@ -19,8 +19,6 @@ package com.infomaniak.swisstransfer.ui.screen.newtransfer import android.content.Context import android.net.Uri -import androidx.core.net.toUri -import com.infomaniak.swisstransfer.ui.components.FileUi import com.infomaniak.swisstransfer.ui.screen.newtransfer.NewTransferViewModel.Companion.LOCAL_COPY_FOLDER import dagger.hilt.android.qualifiers.ApplicationContext import io.sentry.Sentry