Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cherrypick_3216' into feature/eu…
Browse files Browse the repository at this point in the history
…sm_develop
  • Loading branch information
dubdabasoduba committed May 25, 2024
2 parents 3219126 + 7eed252 commit cdaaed5
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,19 @@ fun List<ActionConfig>.handleClickEvent(
ApplicationWorkflow.LAUNCH_INSIGHT_SCREEN ->
navController.navigate(MainNavigationScreen.Insight.route)
ApplicationWorkflow.DEVICE_TO_DEVICE_SYNC -> startP2PScreen(navController.context)
ApplicationWorkflow.LAUNCH_MAP ->
navController.navigate(
MainNavigationScreen.GeoWidgetLauncher.route,
bundleOf(NavigationArg.GEO_WIDGET_ID to actionConfig.id),
)
ApplicationWorkflow.LAUNCH_MAP -> {
val mapFragmentDestination = MainNavigationScreen.GeoWidgetLauncher.route
val isMapFragmentExists =
navController.currentBackStack.value.any { it.destination.id == mapFragmentDestination }
if (isMapFragmentExists) {
navController.popBackStack(mapFragmentDestination, false)
} else {
navController.navigate(
resId = mapFragmentDestination,
args = bundleOf(NavigationArg.GEO_WIDGET_ID to actionConfig.id),
)
}
}
ApplicationWorkflow.LAUNCH_DIALLER -> {
val actionParameter = interpolatedParams.first()
val patientPhoneNumber = actionParameter.value
Expand Down

0 comments on commit cdaaed5

Please sign in to comment.