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 1fea4148e..c9165df0e 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 @@ -33,6 +33,7 @@ val filesPreviewData = listOf( fileSize = 10_302_130L, mimeType = null, localPath = "", + isFolder = false, ), FileUi( // Preview file (i.e. png, jpg, etc.) @@ -41,6 +42,7 @@ val filesPreviewData = listOf( fileSize = 456_782L, mimeType = null, localPath = "https://picsum.photos/200/300", + isFolder = false, ), FileUi( fileName = "The 5 step guide to turning it off and on again.docx", @@ -48,6 +50,7 @@ val filesPreviewData = listOf( fileSize = 89_723_143L, mimeType = null, localPath = "", + isFolder = false, ), FileUi( uid = UUID.randomUUID().toString(), @@ -55,6 +58,7 @@ val filesPreviewData = listOf( fileSize = 237_866_728L, mimeType = null, localPath = null, + isFolder = false, ), FileUi( uid = UUID.randomUUID().toString(), @@ -62,6 +66,7 @@ val filesPreviewData = listOf( fileSize = 98_723_143L, mimeType = null, localPath = null, + isFolder = false, ), FileUi( uid = UUID.randomUUID().toString(), @@ -69,5 +74,6 @@ val filesPreviewData = listOf( fileSize = 57_689_032L, mimeType = null, localPath = null, + isFolder = false, ), ) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/TransferUiListPreviewParameterProvider.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/TransferUiListPreviewParameterProvider.kt index ee586b3c6..f43057fa2 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/TransferUiListPreviewParameterProvider.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/TransferUiListPreviewParameterProvider.kt @@ -39,6 +39,7 @@ val transfersPreviewData = listOf( downloadLimit = 1, downloadLeft = 1, message = "Coucou c'est moi le message de description du transfert.", + password = "password", files = filesPreviewData, ), TransferUi( @@ -52,6 +53,7 @@ val transfersPreviewData = listOf( downloadLimit = 20, downloadLeft = 0, message = null, + password = null, files = filesPreviewData, ), TransferUi( @@ -65,6 +67,7 @@ val transfersPreviewData = listOf( downloadLimit = 250, downloadLeft = 123, message = "3ème transfert. RAS.", + password = "my password", files = filesPreviewData, ), ) 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 e7e408506..682e0b314 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 @@ -106,6 +106,7 @@ class ImportationFilesManager @Inject constructor( fileSize = fileToImport.fileSizeInBytes, mimeType = FileType.guessMimeTypeFromFileName(fileToImport.fileName), localPath = copiedFile.toUri().toString(), + isFolder = false, ) ) } @@ -135,6 +136,7 @@ class ImportationFilesManager @Inject constructor( fileSize = fileSizeInBytes, mimeType = null, localPath = localFile.toUri().toString(), + isFolder = false, ) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 304e9e60b..bb1de516b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ qrose = "1.0.1" recaptcha = "18.6.1" sentry = "4.12.0" serialization = "1.7.3" -swisstransfer = "0.8.2" +swisstransfer = "0.9.0" workmanager = "2.10.0" [libraries]