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