Skip to content

Commit

Permalink
refactor: TOP-85 ci/cd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kwangddang committed Sep 29, 2023
1 parent a814693 commit 855353a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class LocationFragment : SignupRootBaseFragment<LocationViewModel, FragmentLocat
requireContext().getColor(R.color.yellow_f9cc2e)
binding.btnNext.isEnabled = true
}

LocationViewModel.LocationUiState.InvalidInput -> {
binding.cvLocation.strokeColor =
requireContext().getColor(R.color.gray_8d8d8d)
Expand All @@ -78,16 +79,21 @@ class LocationFragment : SignupRootBaseFragment<LocationViewModel, FragmentLocat
is LocationViewModel.LocationSideEffect.ShowToast -> {
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)
}
Expand Down

0 comments on commit 855353a

Please sign in to comment.