Skip to content

Commit

Permalink
refactor: 불필요한 변수(fm) 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Oct 27, 2024
1 parent 719f788 commit 7217209
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,14 @@ class PokemonListActivity :
startActivity(PokemonDetailActivity.intent(this, pokemonId))
}
}
val fm: FragmentManager = supportFragmentManager

fm.setFragmentResultListener(FILTER_RESULT_KEY, this) { key, bundle ->
supportFragmentManager.setFragmentResultListener(FILTER_RESULT_KEY, this) { key, bundle ->
val filterArgs: PokeFilterUiModel =
PokemonFilterBottomSheetFragment.argsFrom(bundle)
?: return@setFragmentResultListener
viewModel.filterPokemon(filterArgs)
}
fm.setFragmentResultListener(SORT_RESULT_KEY, this) { key, bundle ->
supportFragmentManager.setFragmentResultListener(SORT_RESULT_KEY, this) { key, bundle ->
val sortArgs: PokemonSortUiModel =
PokemonSortBottomSheetFragment.argsFrom(bundle)
?: return@setFragmentResultListener
Expand Down

0 comments on commit 7217209

Please sign in to comment.