From b9c23bd6e278e8166d1c0e755f5b9aee62957bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Wed, 3 Jul 2024 09:43:11 +0200 Subject: [PATCH] Add missing inclusive --- .../net/mullvad/mullvadvpn/compose/screen/SplashScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SplashScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SplashScreen.kt index 082763ce1b61..f5977e7b57fc 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SplashScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SplashScreen.kt @@ -63,7 +63,9 @@ fun Splash(navigator: DestinationsNavigator) { popUpTo(NavGraphs.root) { inclusive = true } } SplashUiSideEffect.NavigateToPrivacyDisclaimer -> - navigator.navigate(PrivacyDisclaimerDestination) { popUpTo(NavGraphs.root) {} } + navigator.navigate(PrivacyDisclaimerDestination) { + popUpTo(NavGraphs.root) { inclusive = true } + } SplashUiSideEffect.NavigateToRevoked -> navigator.navigate(DeviceRevokedDestination) { popUpTo(NavGraphs.root) { inclusive = true }