diff --git a/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationFragment.kt b/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationFragment.kt index 2d531cf6..5bc7818c 100644 --- a/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationFragment.kt +++ b/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationFragment.kt @@ -63,6 +63,7 @@ class LocationFragment : SignupRootBaseFragment { binding.cvLocation.strokeColor = requireContext().getColor(R.color.gray_8d8d8d) @@ -78,16 +79,21 @@ class LocationFragment : SignupRootBaseFragment { context?.showToast(it.message) } + LocationViewModel.LocationSideEffect.CheckPermission -> { locationPermissionGrantEvent.launch(Manifest.permission.ACCESS_FINE_LOCATION) } + LocationViewModel.LocationSideEffect.ShowLocationDialog -> { - if (findNavController().currentDestination?.id == tht.feature.signin.R.id.locationFragment) { + if (findNavController().currentDestination?.id == + tht.feature.signin.R.id.locationFragment + ) { findNavController().navigate( LocationFragmentDirections.actionLocationFragmentToLocationDialogFragment() ) } } + LocationViewModel.LocationSideEffect.NavigateNextView -> { rootViewModel.nextEvent(SignupRootViewModel.Step.LOCATION) }