Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored May 5, 2024
1 parent 166e52e commit 8c00c24
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ class SearchFragment : Fragment() {
binding.searchText.setText(savedInstanceState.getString(SEARCH_TEXT))
}

val inflater = LayoutInflater.from(requireContext())

binding.gridGamesSearch.apply {
layoutManager = GridLayoutManager(
requireContext(),
resources.getInteger(R.integer.game_grid_columns)
)
adapter = GameAdapter(requireActivity() as AppCompatActivity)
adapter = GameAdapter(requireActivity() as AppCompatActivity, inflater)
}

binding.chipGroup.setOnCheckedStateChangeListener { _, _ -> filterAndSearch() }
Expand Down

0 comments on commit 8c00c24

Please sign in to comment.