Fix long click to refresh
This commit is contained in:
1 parent
560c7e0035
commit
d3f1ce1fe4
6 files changed
+34
-75
No files matched your search
+2
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user