diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt index d4ecbc66d..501e0b932 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt @@ -58,6 +58,7 @@ val filesPreviewData = listOf( FileUi( uid = UUID.randomUUID().toString(), fileName = "Learning to Copy and Paste: A Complete Guide.docx", + isFolder = false, fileSize = 237_866_728L, mimeType = null, localPath = null, @@ -66,6 +67,7 @@ val filesPreviewData = listOf( FileUi( uid = UUID.randomUUID().toString(), fileName = "Introduction to Turning It Off and On Again.pptx", + isFolder = false, fileSize = 98_723_143L, mimeType = null, localPath = null, @@ -74,6 +76,7 @@ val filesPreviewData = listOf( FileUi( uid = UUID.randomUUID().toString(), fileName = "The 5-Step Guide to Not Breaking Your Code.txt", + isFolder = false, fileSize = 57_689_032L, mimeType = null, localPath = null, 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 418194be7..2a4d35841 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 @@ -103,6 +103,7 @@ class ImportationFilesManager @Inject constructor( FileUi( uid = fileToImport.fileName, fileName = fileToImport.fileName, + isFolder = false, fileSize = fileToImport.fileSizeInBytes, mimeType = FileType.guessMimeTypeFromFileName(fileToImport.fileName), localPath = copiedFile.toUri().toString(), @@ -134,6 +135,7 @@ class ImportationFilesManager @Inject constructor( FileUi( uid = localFile.name, fileName = localFile.name, + isFolder = false, fileSize = fileSizeInBytes, mimeType = null, localPath = localFile.toUri().toString(),