File tree Expand file tree Collapse file tree 1 file changed +29
-10
lines changed
cmp-navigation/src/commonMain/kotlin/cmp/navigation/authenticated Expand file tree Collapse file tree 1 file changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -395,16 +395,35 @@ fun NavController.navigateToStatusScreenWithoutPopUpTo(
395395 subtitle : String ,
396396 buttonText : String ,
397397) {
398- this .navigate(
399- StatusNavigationRoute (
400- eventType = eventType,
401- eventDestination = eventDestination,
402- title = title,
403- subtitle = subtitle,
404- buttonText = buttonText,
405- ),
406- ) {
407- launchSingleTop = true
398+ if (eventDestination == StatusNavigationDestination .THIRD_PARTY_TRANSFER .name) {
399+ this .navigate(
400+ StatusNavigationRoute (
401+ eventType = eventType,
402+ eventDestination = eventDestination,
403+ title = title,
404+ subtitle = subtitle,
405+ buttonText = buttonText,
406+ ),
407+ ) {
408+ if (eventType == EventType .SUCCESS .name) {
409+ popUpTo(AuthenticatedGraphRoute ) {
410+ inclusive = true
411+ }
412+ launchSingleTop = true
413+ }
414+ }
415+ } else {
416+ this .navigate(
417+ StatusNavigationRoute (
418+ eventType = eventType,
419+ eventDestination = eventDestination,
420+ title = title,
421+ subtitle = subtitle,
422+ buttonText = buttonText,
423+ ),
424+ ) {
425+ launchSingleTop = true
426+ }
408427 }
409428}
410429
You can’t perform that action at this time.
0 commit comments