From c94d8c43c4a7a76bda5a0feca3c856ffe2d548df Mon Sep 17 00:00:00 2001 From: Vincent TE Date: Thu, 28 Nov 2024 08:44:00 +0100 Subject: [PATCH] chore: Fix rebase --- .../previewparameter/FileUiListPreviewParameterProvider.kt | 6 ------ .../ui/screen/newtransfer/ImportationFilesManager.kt | 2 -- 2 files changed, 8 deletions(-) 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 14e84d0fd..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 @@ -30,7 +30,6 @@ val filesPreviewData = listOf( // Non-preview file (i.e. pdf, txt, etc.) fileName = "How to not get fired.pdf", uid = "How to not get fired.pdf", - isFolder = false, fileSize = 10_302_130L, mimeType = null, localPath = "", @@ -40,7 +39,6 @@ val filesPreviewData = listOf( // Preview file (i.e. png, jpg, etc.) fileName = "Opening images tutorial.png", uid = "Opening images tutorial.png", - isFolder = false, fileSize = 456_782L, mimeType = null, localPath = "https://picsum.photos/200/300", @@ -49,7 +47,6 @@ val filesPreviewData = listOf( FileUi( fileName = "The 5 step guide to turning it off and on again.docx", uid = "The 5 step guide to turning it off and on again.docx", - isFolder = false, fileSize = 89_723_143L, mimeType = null, localPath = "", @@ -58,7 +55,6 @@ 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, @@ -67,7 +63,6 @@ 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, @@ -76,7 +71,6 @@ 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 b1e81f16a..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 @@ -103,7 +103,6 @@ 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,7 +133,6 @@ class ImportationFilesManager @Inject constructor( FileUi( uid = localFile.name, fileName = localFile.name, - isFolder = false, fileSize = fileSizeInBytes, mimeType = null, localPath = localFile.toUri().toString(),