Skip to content

Commit

Permalink
fix: null checking
Browse files Browse the repository at this point in the history
  • Loading branch information
CappielloAntonio committed Dec 30, 2024
1 parent e1c96d2 commit c8c1bcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void initGenreCatalogueView() {
genreCatalogueAdapter.setStateRestorationPolicy(RecyclerView.Adapter.StateRestorationPolicy.PREVENT_WHEN_EMPTY);
bind.genreCatalogueRecyclerView.setAdapter(genreCatalogueAdapter);

genreCatalogueViewModel.getGenreList().observe(getViewLifecycleOwner(), genres -> { /* genreCatalogueAdapter.setItems(genres) */});
genreCatalogueViewModel.getGenreList().observe(getViewLifecycleOwner(), genres -> genreCatalogueAdapter.setItems(genres) );

bind.genreCatalogueRecyclerView.setOnTouchListener((v, event) -> {
hideKeyboard(v);
Expand Down

0 comments on commit c8c1bcf

Please sign in to comment.