From 35eeb1ca0773fe2205fc8025aec36ba93813d5fd Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Thu, 15 Aug 2024 16:52:31 +0200 Subject: [PATCH] Refactor new transfer --- .../swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt | 4 ++-- .../swisstransfer/ui/screen/newtransfer/NewTransferScreen.kt | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt index bd8851371..2b27689c1 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt @@ -34,9 +34,9 @@ import com.infomaniak.swisstransfer.ui.screen.newtransfer.upload.UploadProgressS import com.infomaniak.swisstransfer.ui.screen.newtransfer.upload.UploadSuccessScreen @Composable -fun NewTransferNavHost(navController: NavHostController, modifier: Modifier) { +fun NewTransferNavHost(navController: NavHostController) { - NavHost(navController, NewTransferNavigation.startDestination, modifier = modifier.safeDrawingPadding()) { + NavHost(navController, NewTransferNavigation.startDestination) { composable { ImportFilesScreen() } diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferScreen.kt index ae73d59af..6810e428f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/NewTransferScreen.kt @@ -31,9 +31,7 @@ import com.infomaniak.swisstransfer.ui.utils.PreviewTablet fun NewTransferScreen() { val navController = rememberNavController() - Scaffold { paddingValues -> - NewTransferNavHost(navController, modifier = Modifier.padding(paddingValues)) - } + NewTransferNavHost(navController) } @PreviewMobile