Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
Logomann committed Aug 18, 2024
1 parent 09d7ec4 commit e2e4cc2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ class FilterCountryFragment : Fragment() {
}

private fun onItemClicked(country: Country) {
setFragmentResult(COUNTRY_REQUEST_KEY, bundleOf(
COUNTRY_NAME_KEY to country.name,
COUNTRY_ID_KEY to country.id
)
setFragmentResult(
COUNTRY_REQUEST_KEY, bundleOf(COUNTRY_NAME_KEY to country.name, COUNTRY_ID_KEY to country.id)

Check warning on line 94 in app/src/main/java/ru/practicum/android/diploma/ui/fragments/FilterCountryFragment.kt

View workflow job for this annotation

GitHub Actions / "detekt"

["detekt"] app/src/main/java/ru/practicum/android/diploma/ui/fragments/FilterCountryFragment.kt#L94 <detekt.ArgumentListWrapping>

Argument should be on a separate line (unless all arguments can fit a single line)
Raw output
/home/runner/work/practicum-android-diploma/practicum-android-diploma/app/src/main/java/ru/practicum/android/diploma/ui/fragments/FilterCountryFragment.kt:94:34: warning: Argument should be on a separate line (unless all arguments can fit a single line) (detekt.ArgumentListWrapping)
)
findNavController().navigateUp()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class FilterPlaceOfWorkFragment : Fragment() {

is PlaceOfWorkScreenState.Saved -> {
setFragmentResult(
PLACE_OF_WORK_KEY, bundleOf(
PLACE_OF_WORK_KEY,
bundleOf(
PLACE_OF_WORK_COUNTRY_KEY to state.countryName,
PLACE_OF_WORK_REGION_KEY to binding.regionTextInput.text.toString(),
PLACE_OF_WORK_ID_KEY to state.regionId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ class FilterRegionFragment : Fragment() {
}

private fun onItemClicked(region: Region) {
setFragmentResult(REGION_REQUEST_KEY, bundleOf(
REGION_NAME_KEY to region.name,
REGION_PARENT_ID_KEY to region.parentId
)
setFragmentResult(
REGION_REQUEST_KEY,
bundleOf(REGION_NAME_KEY to region.name, REGION_PARENT_ID_KEY to region.parentId)
)
findNavController().navigateUp()
}
Expand Down

0 comments on commit e2e4cc2

Please sign in to comment.