From 4b6198cf6c759264698c7022b70ee7387608bdb9 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Wed, 18 Dec 2024 10:17:33 +0100 Subject: [PATCH] refactor: Use `popBackStack` with correct route instead of just popping back blindly --- .../swisstransfer/ui/screen/newtransfer/NewTransferNavHost.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cee05be8e..c61abe31e 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 @@ -53,7 +53,7 @@ fun NewTransferNavHost(navController: NavHostController, closeActivity: () -> Un navController.navigate(UploadSuccessDestination(args.transferType, transferUrl)) }, navigateToUploadError = { navController.navigate(UploadErrorDestination) }, - navigateBackToImportFiles = { navController.popBackStack() }, + navigateBackToImportFiles = { navController.popBackStack(route = ImportFilesDestination, inclusive = false) }, ) } composable {