Added missing navigation paths

This commit is contained in:
CappielloAntonio 2022-01-16 11:57:49 +01:00
parent 9cede96bd9
commit e2bff83211
3 changed files with 10 additions and 0 deletions

View file

@ -108,6 +108,8 @@ public class AlbumHorizontalAdapter extends RecyclerView.Adapter<AlbumHorizontal
Navigation.findNavController(view).navigate(R.id.action_downloadFragment_to_albumPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.libraryFragment) {
Navigation.findNavController(view).navigate(R.id.action_libraryFragment_to_albumPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.starredFragment) {
Navigation.findNavController(view).navigate(R.id.action_starredFragment_to_albumPageFragment, bundle);
}
}

View file

@ -117,6 +117,8 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
else Navigation.findNavController(view).navigate(R.id.action_artistListPageFragment_to_albumListPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.downloadFragment) {
Navigation.findNavController(view).navigate(R.id.action_downloadFragment_to_albumListPageFragment, bundle);
} else if (Objects.requireNonNull(Navigation.findNavController(view).getCurrentDestination()).getId() == R.id.starredFragment) {
Navigation.findNavController(view).navigate(R.id.action_starredFragment_to_artistPageFragment, bundle);
}
}