mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-03 19:01:39 +00:00
Fix long click to refresh
This commit is contained in:
parent
560c7e0035
commit
d3f1ce1fe4
6 changed files with 34 additions and 75 deletions
|
|
@ -52,7 +52,7 @@ public class PlaylistCatalogueFragment extends Fragment {
|
|||
View view = bind.getRoot();
|
||||
|
||||
initAppBar();
|
||||
initArtistCatalogueView();
|
||||
initPlaylistCatalogueView();
|
||||
|
||||
return view;
|
||||
}
|
||||
|
|
@ -71,7 +71,6 @@ public class PlaylistCatalogueFragment extends Fragment {
|
|||
|
||||
private void initData() {
|
||||
playlistCatalogueViewModel = new ViewModelProvider(requireActivity()).get(PlaylistCatalogueViewModel.class);
|
||||
playlistCatalogueViewModel.loadPlaylists(requireContext());
|
||||
}
|
||||
|
||||
private void initAppBar() {
|
||||
|
|
@ -98,7 +97,7 @@ public class PlaylistCatalogueFragment extends Fragment {
|
|||
}
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
private void initArtistCatalogueView() {
|
||||
private void initPlaylistCatalogueView() {
|
||||
bind.playlistCatalogueRecyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
|
||||
bind.playlistCatalogueRecyclerView.setHasFixedSize(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue